diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-10-25 14:27:23 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-10-25 14:27:23 -0700 |
commit | 6a68d646297b5264fc3c0672fc58dcbf64523bdc (patch) | |
tree | 5b1ce2d8935d2c05ff29515d55d4a5a220228a03 /lib | |
parent | f6e574018090ed4d63596b8a3bb614f8f48b6267 (diff) | |
download | node-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.js | 9 |
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) || '.'; |