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:
authorForrest L Norvell <forrest@npmjs.com>2014-09-13 11:14:10 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-09-13 11:14:10 +0400
commite2764d433fdffe6f54295e047ea3022e92a1342a (patch)
tree09b217c9fc6ca504e9558858f403c553bcba7ee9 /lib/cache.js
parentca0ef0e99bbdeccf28d550d0296baa4cb5e7ece2 (diff)
function name spacing
Diffstat (limited to 'lib/cache.js')
-rw-r--r--lib/cache.js12
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