Skip to content

Commit 2f8da71

Browse files
authored
fix: parsed url is not exposed (#11816) (#11916)
* fix: parsed url is not exposed (#11816) Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com> * subtler fix, thanks @woehrl01 Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com> Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
1 parent 7f2dd9e commit 2f8da71

File tree

1 file changed

+2
-2
lines changed
  • ui/src/app/shared/components

1 file changed

+2
-2
lines changed

ui/src/app/shared/components/urls.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function repoUrl(url: string): string {
2626
}
2727

2828
export function revisionUrl(url: string, revision: string, forPath: boolean): string {
29+
let parsed;
2930
try {
30-
const parsed = GitUrlParse(url);
31+
parsed = GitUrlParse(url);
3132
} catch {
32-
// URL Parsing failed
3333
return null;
3434
}
3535
let urlSubPath = isSHA(revision) ? 'commit' : 'tree';

0 commit comments

Comments
 (0)