diff --git a/lib/path.js b/lib/path.js index b746b5a7e073b8..890e50627872e4 100644 --- a/lib/path.js +++ b/lib/path.js @@ -268,7 +268,7 @@ const win32 = { !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } - if ((j === len || j !== last)) { + if (j === len || j !== last) { if (firstPart !== '.' && firstPart !== '?') { // We matched a UNC root device =