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:
authorisaacs <i@izs.me>2012-11-08 20:26:50 +0400
committerisaacs <i@izs.me>2012-11-08 20:26:50 +0400
commit6e5805bb95d77541aa04b4a52e3d30d6430fc473 (patch)
treeb9619b8e3f36a4dc7835311d0db7f6149d507927 /lib/dedupe.js
parent54cb6ea1ce3b3dd28d29811e5b2d49411131db74 (diff)
Fix #2934 dedupe set must be [] when empty
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r--lib/dedupe.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js
index 9a357908a..67481c6db 100644
--- a/lib/dedupe.js
+++ b/lib/dedupe.js
@@ -225,7 +225,7 @@ function findVersions (npm, summary, cb) {
// not actually a dupe, or perhaps all the other copies were
// children of a dupe, so this'll maybe be picked up later.
if (locs.length === 0) {
- return cb()
+ return cb(null, [])
}
// { <folder>: <version> }