Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Dec 31, 2024
1 parent 8c5ea50 commit 016affb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getAbsoluteUrl = (path: string) => {
try {
// eslint-disable-next-line no-new
new URL(path);
} catch (e) {
} catch {
path = new URL(path, window.location.origin).href;
}

Expand Down

0 comments on commit 016affb

Please sign in to comment.