refactor: Add lint rule no-unused-param-in-catch-clause (#5868)

👕 Add lint rule `no-unused-param-in-catch-clause`
This commit is contained in:
Iván Ovejero
2023-03-31 16:44:08 +02:00
committed by GitHub
parent 18d2e7cd57
commit 62751b5a0b
5 changed files with 35 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ function isUrl(value: string) {
let url: URL;
try {
url = new URL(value);
} catch (_error) {
} catch {
return false;
}