From d579c6625c9aea940f054d8263459d7ef115b300 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 9 Dec 2018 15:31:53 +0200 Subject: [PATCH] Use optional catch binding Co-Authored-By: itaisteinherz --- source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index b6044ac..8e242f3 100644 --- a/source/index.ts +++ b/source/index.ts @@ -198,7 +198,7 @@ namespace is { // tslint:disable-line:no-namespace try { new URL(value); // tslint:disable-line no-unused-expression return true; - } catch (_) { // tslint:disable-line no-unused + } catch { return false; } };