Skip to content

Commit

Permalink
fix: parsed url is not exposed (argoproj#11816) (argoproj#11916)
Browse files Browse the repository at this point in the history
* fix: parsed url is not exposed (argoproj#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>
Signed-off-by: emirot <emirot.nolan@gmail.com>
  • Loading branch information
alexef authored and emirot committed Jan 27, 2023
1 parent 2891588 commit 26980ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/shared/components/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export function repoUrl(url: string): string {
}

export function revisionUrl(url: string, revision: string, forPath: boolean): string {
let parsed;
try {
const parsed = GitUrlParse(url);
parsed = GitUrlParse(url);
} catch {
// URL Parsing failed
return null;
}
let urlSubPath = isSHA(revision) ? 'commit' : 'tree';
Expand Down

0 comments on commit 26980ac

Please sign in to comment.