Browse Source

path: use '===' instead of '==' for comparison

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>
v4.0.0-rc
Sam Stites 10 years ago
committed by Roman Reiss
parent
commit
1a3b295d0f
  1. 2
      lib/path.js

2
lib/path.js

@ -277,7 +277,7 @@ win32.relative = function(from, to) {
}
}
if (samePartsLength == 0) {
if (samePartsLength === 0) {
return to;
}

Loading…
Cancel
Save