From: Sam Stites Date: Sat, 15 Aug 2015 17:07:07 +0000 (-0700) Subject: path: use '===' instead of '==' for comparison X-Git-Tag: v4.0.0-rc.1~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a3b295d0f46b2189bd853800b1e63ab4d106b66;p=platform%2Fupstream%2Fnodejs.git 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 Reviewed-By: Roman Reiss --- diff --git a/lib/path.js b/lib/path.js index 78c6157..4bcb2b3 100644 --- a/lib/path.js +++ b/lib/path.js @@ -277,7 +277,7 @@ win32.relative = function(from, to) { } } - if (samePartsLength == 0) { + if (samePartsLength === 0) { return to; }