Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 9, 2022
1 parent ad02952 commit bcb0d81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ const parseGitUrl = (giturl) => {
let result
try {
result = new url.URL(giturl)
} catch (err) {}
} catch {
// this fn should never throw
}

if (result) {
return result
Expand All @@ -238,7 +240,9 @@ const parseGitUrl = (giturl) => {
const correctedUrl = correctUrl(giturl)
try {
result = new url.URL(correctedUrl)
} catch (err) {}
} catch {
// this fn should never throw
}

return result
}

0 comments on commit bcb0d81

Please sign in to comment.