diff options
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/path.js b/lib/path.js index c8d92f14af0..798682ca0f1 100644 --- a/lib/path.js +++ b/lib/path.js @@ -1073,16 +1073,13 @@ const posix = { resolve: function resolve() { var resolvedPath = ''; var resolvedAbsolute = false; - var cwd; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path; if (i >= 0) path = arguments[i]; else { - if (cwd === undefined) - cwd = process.cwd(); - path = cwd; + path = process.cwd(); } assertPath(path); |