querystring: remove eslint-disable
Remove the eslint-disable comments by using a strict comparison instead of a Boolean cast. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
37a5e01bda
commit
034ec648ca
@ -318,8 +318,7 @@ function parse(qs, sep, eq, options) {
|
|||||||
encodeCheck = 1;
|
encodeCheck = 1;
|
||||||
continue;
|
continue;
|
||||||
} else if (encodeCheck > 0) {
|
} else if (encodeCheck > 0) {
|
||||||
// eslint-disable-next-line no-extra-boolean-cast
|
if (isHexTable[code] === 1) {
|
||||||
if (!!isHexTable[code]) {
|
|
||||||
if (++encodeCheck === 3)
|
if (++encodeCheck === 3)
|
||||||
keyEncoded = true;
|
keyEncoded = true;
|
||||||
continue;
|
continue;
|
||||||
@ -348,8 +347,7 @@ function parse(qs, sep, eq, options) {
|
|||||||
if (code === 37/* % */) {
|
if (code === 37/* % */) {
|
||||||
encodeCheck = 1;
|
encodeCheck = 1;
|
||||||
} else if (encodeCheck > 0) {
|
} else if (encodeCheck > 0) {
|
||||||
// eslint-disable-next-line no-extra-boolean-cast
|
if (isHexTable[code] === 1) {
|
||||||
if (!!isHexTable[code]) {
|
|
||||||
if (++encodeCheck === 3)
|
if (++encodeCheck === 3)
|
||||||
valEncoded = true;
|
valEncoded = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user