summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2014-10-25 14:27:23 -0700
committerTrevor Norris <trev.norris@gmail.com>2014-10-25 14:27:23 -0700
commit6a68d646297b5264fc3c0672fc58dcbf64523bdc (patch)
tree5b1ce2d8935d2c05ff29515d55d4a5a220228a03 /lib
parentf6e574018090ed4d63596b8a3bb614f8f48b6267 (diff)
downloadnode-6a68d646297b5264fc3c0672fc58dcbf64523bdc.tar.gz
lint: fix whitespace issues
Fixes: f6e5740 "path: resolve normalize drive letter to lower case" Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/path.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/path.js b/lib/path.js
index fc5e650ce..6af430ec4 100644
--- a/lib/path.js
+++ b/lib/path.js
@@ -163,10 +163,11 @@ if (isWindows) {
resolvedTail = normalizeArray(resolvedTail.split(/[\\\/]+/).filter(f),
!resolvedAbsolute).join('\\');
- // If device is a drive letter, we'll normalize to lower case.
- if (resolvedDevice && resolvedDevice.charAt(1) === ':')
- resolvedDevice = resolvedDevice[0].toLowerCase() +
- resolvedDevice.substr(1);
+ // If device is a drive letter, we'll normalize to lower case.
+ if (resolvedDevice && resolvedDevice.charAt(1) === ':') {
+ resolvedDevice = resolvedDevice[0].toLowerCase() +
+ resolvedDevice.substr(1);
+ }
return (resolvedDevice + (resolvedAbsolute ? '\\' : '') + resolvedTail) ||
'.';