From 1a3b295d0f46b2189bd853800b1e63ab4d106b66 Mon Sep 17 00:00:00 2001 From: Sam Stites Date: Sat, 15 Aug 2015 10:07:07 -0700 Subject: [PATCH] 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 --- lib/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/path.js b/lib/path.js index 78c61579ec0fc8..4bcb2b3672091c 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; }