From dbba88764bb4aef6ef2d61e9869f212900c86f99 Mon Sep 17 00:00:00 2001 From: Matt Jiles Date: Fri, 12 Oct 2018 12:50:41 -0400 Subject: [PATCH] tls: update try catch syntax try catch syntax allows elimination of function arguments so removed unused err argument --- lib/tls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tls.js b/lib/tls.js index f771a661d07692..57228ca273cb98 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -176,7 +176,7 @@ exports.checkServerIdentity = function checkServerIdentity(hostname, cert) { let uri; try { uri = new URL(name.slice(4)); - } catch (err) { + } catch { uri = url.parse(name.slice(4)); if (!urlWarningEmitted && !process.noDeprecation) { urlWarningEmitted = true;