Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Landolt <dean@deanlandolt.com>2011-09-08 19:31:27 +0400
committerDean Landolt <dean@deanlandolt.com>2011-09-08 19:31:27 +0400
commitb3d4ca8606b7b7fdee36e25bd883f4d6db2b3b7f (patch)
treec7e3454c6d9eaf068bc464c5333e1feb9fd44dd7
parent4eb6a97a5a3a083cbeb727a3a686b02e43dff4ac (diff)
fix path.resolve redundancy
-rw-r--r--lib/utils/mkdir-p.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/mkdir-p.js b/lib/utils/mkdir-p.js
index 3a5ec438d..2b1df8221 100644
--- a/lib/utils/mkdir-p.js
+++ b/lib/utils/mkdir-p.js
@@ -25,7 +25,7 @@ function mkdir (ensure, mode, uid, gid, cb_) {
}
}
- ensure = path.resolve(process.cwd(), ensure)
+ ensure = path.resolve(ensure)
if (mkdirCache.hasOwnProperty(ensure)) {
return mkdirCache[ensure].push(cb_)