From b3932ef8e3f6695932e3a2a1b017bce733cbe723 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 340e53a05abe49..d61901979c89c9 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;