From e7b77ead7435c85612856c9835cab1857611efd7 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 12 Dec 2018 13:05:17 -0500 Subject: [PATCH] url: remove an eslint-disable comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove an eslint-disable comment by using a strict comparison instead of a Boolean cast. PR-URL: https://github.com/nodejs/node/pull/24995 Reviewed-By: Rich Trott Reviewed-By: Michaël Zasso Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Ruben Bridgewater Reviewed-By: Anto Aravinth --- lib/internal/url.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index ae1adad8c1a214..13063cb8f2f5a6 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -771,8 +771,7 @@ function parseParams(qs) { if (code === CHAR_PERCENT) { encodeCheck = 1; } else if (encodeCheck > 0) { - // eslint-disable-next-line no-extra-boolean-cast - if (!!isHexTable[code]) { + if (isHexTable[code] === 1) { if (++encodeCheck === 3) { querystring = require('querystring'); encoded = true;