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
path: root/lib
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-09-05 09:24:27 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-09-05 09:35:00 +0400
commit6c2721ba1914b3c4ecbf4218578f45fc357ae299 (patch)
treebc4f9c64315d22e019af46e49378ce41feea6732 /lib
parentd2b1c5ea27a40c9158f048b1319f56070d58d471 (diff)
style tweaks: semicolons, spacing, ' -> "
Diffstat (limited to 'lib')
-rw-r--r--lib/cache.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/cache.js b/lib/cache.js
index 1ab7dc61f..46cdf583c 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -274,11 +274,11 @@ function add (args, cb) {
// short-circuit local installs
fs.stat(spec, function (er, s) {
- if (er) return addNonLocal(spec, cb);
- if (! s.isDirectory()) return addAndLogLocal(spec,cb);
- fs.stat(path.join(spec, 'package.json'), function (er) {
- if (er) return addNonLocal(spec, cb);
- addAndLogLocal(spec,cb);
+ if (er) return addNonLocal(spec, cb)
+ if (! s.isDirectory()) return addAndLogLocal(spec,cb)
+ fs.stat(path.join(spec, "package.json"), function (er) {
+ if (er) return addNonLocal(spec, cb)
+ addAndLogLocal(spec,cb)
})
})
}