diff options
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/path.js b/lib/path.js index 876e5fd582e..e8dbf4c2eea 100644 --- a/lib/path.js +++ b/lib/path.js @@ -455,17 +455,15 @@ const win32 = { } else { return ''; } + } else if (isAbsolute) { + if (tail.length > 0) + return device + '\\' + tail; + else + return device + '\\'; + } else if (tail.length > 0) { + return device + tail; } else { - if (isAbsolute) { - if (tail.length > 0) - return device + '\\' + tail; - else - return device + '\\'; - } else if (tail.length > 0) { - return device + tail; - } else { - return device; - } + return device; } }, |