Fix ESLint issues
This commit is contained in:
@ -26,7 +26,7 @@ export function checkConstraint(
|
||||
export function checkURL(s: string): boolean {
|
||||
try {
|
||||
return Boolean(new URL(s));
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user