Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e7b77ea

Browse filesBrowse 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 2456a54 commit e7b77ea
Copy full SHA for e7b77ea

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/url.js‎

Copy file name to clipboardExpand all lines: lib/internal/url.js
+1-2Lines 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
} 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.