diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-09-05 09:24:27 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-09-05 09:35:00 +0400 |
commit | 6c2721ba1914b3c4ecbf4218578f45fc357ae299 (patch) | |
tree | bc4f9c64315d22e019af46e49378ce41feea6732 /lib | |
parent | d2b1c5ea27a40c9158f048b1319f56070d58d471 (diff) |
style tweaks: semicolons, spacing, ' -> "
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cache.js | 10 |
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) }) }) } |