diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-09-13 11:14:10 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-09-13 11:14:10 +0400 |
commit | e2764d433fdffe6f54295e047ea3022e92a1342a (patch) | |
tree | 09b217c9fc6ca504e9558858f403c553bcba7ee9 /lib/cache.js | |
parent | ca0ef0e99bbdeccf28d550d0296baa4cb5e7ece2 (diff) |
function name spacing
Diffstat (limited to 'lib/cache.js')
-rw-r--r-- | lib/cache.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/cache.js b/lib/cache.js index a3b7c2f29..281d6100a 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -153,7 +153,7 @@ function read (name, ver, forceBypass, cb) { }) } -function normalize(args) { +function normalize (args) { var normalized = "" if (args.length > 0) { var a = npa(args[0]) @@ -284,12 +284,12 @@ function add (args, where, cb) { }) } -function addAndLogLocal(spec, cb) { +function addAndLogLocal (spec, cb) { log.verbose("cache add", "local package", path.resolve(spec)) - return addLocal(spec,null,cb) + return addLocal(spec, null, cb) } -function addNonLocal(spec, cb) { +function addNonLocal (spec, cb) { var p = npa(spec) log.verbose("parsed spec", p) @@ -369,13 +369,13 @@ function afterAdd (cb) { return function (er, data) { }) }} -function needName(er, data) { +function needName (er, data) { return er ? er : (data && !data.name) ? new Error("No name provided") : null } -function needVersion(er, data) { +function needVersion (er, data) { return er ? er : (data && !data.version) ? new Error("No version provided") : null |