diff options
author | Di Wu <dwu@palantir.com> | 2013-05-20 06:35:03 +0400 |
---|---|---|
committer | Di Wu <dwu@palantir.com> | 2013-05-20 06:35:03 +0400 |
commit | fcbe17428dda75c7cf0099fe7578ab8b6b0636e1 (patch) | |
tree | 5cb14cb042931acd6c6202ae79cf254721beb3e7 | |
parent | 3da8cbab211748287cb98517bb813750becfb1de (diff) |
call the cb if topPackage doesn't have dependencies
-rw-r--r-- | lib/build.js | 2 |
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) { |