Skip to content

Commit b3932ef

Browse files
cjihrigBethGriggs
authored andcommitted
url: remove an eslint-disable comment
Remove an eslint-disable comment by using a strict comparison instead of a Boolean cast. PR-URL: #24995 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
1 parent e8dfdc0 commit b3932ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/url.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,7 @@ function parseParams(qs) {
771771
if (code === CHAR_PERCENT) {
772772
encodeCheck = 1;
773773
} else if (encodeCheck > 0) {
774-
// eslint-disable-next-line no-extra-boolean-cast
775-
if (!!isHexTable[code]) {
774+
if (isHexTable[code] === 1) {
776775
if (++encodeCheck === 3) {
777776
querystring = require('querystring');
778777
encoded = true;

0 commit comments

Comments
 (0)