path: use '===' instead of '==' for comparison
authorSam Stites <sam@stites.io>
Sat, 15 Aug 2015 17:07:07 +0000 (10:07 -0700)
committerRoman Reiss <me@silverwind.io>
Mon, 17 Aug 2015 18:47:41 +0000 (20:47 +0200)
Per: https://github.com/joyent/node/pull/7554

Originally submitted by @stites

PR-URL: https://github.com/nodejs/node/pull/2388
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/path.js

index 78c6157..4bcb2b3 100644 (file)
@@ -277,7 +277,7 @@ win32.relative = function(from, to) {
     }
   }
 
-  if (samePartsLength == 0) {
+  if (samePartsLength === 0) {
     return to;
   }