Permalink
Browse files

Fix #2934 dedupe set must be [] when empty

  • Loading branch information...
isaacs committed Nov 8, 2012
1 parent 54cb6ea commit 6e5805bb95d77541aa04b4a52e3d30d6430fc473
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dedupe.js
View
@@ -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> }

0 comments on commit 6e5805b

Please sign in to comment.