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 <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 e8dfdc0 commit b3932ef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/internal/url.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,7 @@ function parseParams(qs) {
771771
if(code===CHAR_PERCENT){
772772
encodeCheck=1;
773773
}elseif(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)