From eaa529944b68a4516ed9d43e3ff50b071ff759bc Mon Sep 17 00:00:00 2001 From: Sam Stites Date: Sat, 3 May 2014 17:14:58 -0700 Subject: [PATCH] Use '===' instead of '==' for comparison I've started rewriting node modules to practice typing and noticed that you're evaluating this `if (samePartsLength == 0) {` condition without type-checking. I thought I might submit a quick pull request to fix this issue. --- lib/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/path.js b/lib/path.js index 768c4c1e5bc8..8d30263b07e8 100644 --- a/lib/path.js +++ b/lib/path.js @@ -286,7 +286,7 @@ if (isWindows) { } } - if (samePartsLength == 0) { + if (samePartsLength === 0) { return to; }