Skip to content

Commit 2e94f3b

Browse files
cjihrigBethGriggs
authored andcommitted
querystring: remove eslint-disable
Remove the eslint-disable comments by using a strict comparison instead of a Boolean cast. PR-URL: #24995 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent bde5df2 commit 2e94f3b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/querystring.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ function parse(qs, sep, eq, options) {
318318
encodeCheck = 1;
319319
continue;
320320
} else if (encodeCheck > 0) {
321-
// eslint-disable-next-line no-extra-boolean-cast
322-
if (!!isHexTable[code]) {
321+
if (isHexTable[code] === 1) {
323322
if (++encodeCheck === 3)
324323
keyEncoded = true;
325324
continue;
@@ -348,8 +347,7 @@ function parse(qs, sep, eq, options) {
348347
if (code === 37/* % */) {
349348
encodeCheck = 1;
350349
} else if (encodeCheck > 0) {
351-
// eslint-disable-next-line no-extra-boolean-cast
352-
if (!!isHexTable[code]) {
350+
if (isHexTable[code] === 1) {
353351
if (++encodeCheck === 3)
354352
valEncoded = true;
355353
} else {

0 commit comments

Comments
 (0)