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:
authorDi Wu <dwu@palantir.com>2013-05-20 06:35:03 +0400
committerDi Wu <dwu@palantir.com>2013-05-20 06:35:03 +0400
commitfcbe17428dda75c7cf0099fe7578ab8b6b0636e1 (patch)
tree5cb14cb042931acd6c6202ae79cf254721beb3e7
parent3da8cbab211748287cb98517bb813750becfb1de (diff)
call the cb if topPackage doesn't have dependencies
-rw-r--r--lib/build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/build.js b/lib/build.js
index 94928d54d..fdbae722c 100644
--- a/lib/build.js
+++ b/lib/build.js
@@ -107,7 +107,7 @@ function shouldWarn(pkg, folder, global, cb) {
// current searched package is the linked package on first call
if (linkedPkg !== currentPkg) {
- if (!topPkg.dependencies) return
+ if (!topPkg.dependencies) return cb()
// don't generate a warning if it's listed in dependencies
if (Object.keys(topPkg.dependencies).indexOf(currentPkg) === -1) {