From 656a0acafd014db2844af0df27f98b0d74cf2a2f Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Fri, 12 Oct 2018 09:40:51 -0700 Subject: [PATCH] lib: removed unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change removes a variable that is not being used in the file. PR-URL: https://github.com/nodejs/node/pull/23497 Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Guy Bedford Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- lib/internal/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index f6cf35323389ba..518c745b41e760 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -458,7 +458,7 @@ Object.defineProperties(URL.prototype, { if (ctx.path.length > 0) { try { return (new URL(ctx.path[0])).origin; - } catch (err) { + } catch { // fall through... do nothing } }