Skip to content

Commit cb2fecf

Browse files
committed
chore: fix
1 parent f443ecd commit cb2fecf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/utils/git-providers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ export function normalizeGitUrl(input: string): string | null {
301301
.replace(/(\.[^./]+?):/, '$1/') // change ".com:" to ".com/" from "ssh://user@host.com:..."
302302
.replace(/^git:\/\//, 'https://')
303303
.replace(/^ssh:\/\//, 'https://')
304-
url = url.includes('://') ? url : `https://${url}`
305-
return url || null
304+
if (!url) return null
305+
return url.includes('://') ? url : `https://${url}`
306306
}
307307

308308
export function parseRepoUrl(input: string): RepoRef | null {

0 commit comments

Comments
 (0)