[ci] yarn format

This commit is contained in:
natemoo-re 2022-01-21 22:40:03 +00:00 committed by GitHub Actions
parent ed0b46f96f
commit 72ac198eb0
3 changed files with 4 additions and 4 deletions

View file

@ -16,9 +16,9 @@ export function canonicalURL(url: string, base?: string): URL {
}
/** Check if a URL is already valid */
export function isValidURL(url: string):boolean {
export function isValidURL(url: string): boolean {
try {
new URL(url)
new URL(url);
return true;
} catch (e) {}
return false;