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
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-03 10:49:32 +0400
committerisaacs <i@izs.me>2010-08-03 10:49:32 +0400
commitced7eb2bdcf4cb1d20bfdeccef9a2f92c6d1d371 (patch)
tree176c3947de822f590eb324f98a839dba17b9dd71 /lib
parent6328c071160db5be77b124ca0ce6a230f1155f1f (diff)
Always provide a valid array of items, even if empty
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/read-installed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-installed.js b/lib/utils/read-installed.js
index 7751c701f..34cd666f7 100644
--- a/lib/utils/read-installed.js
+++ b/lib/utils/read-installed.js
@@ -19,7 +19,7 @@ function readInstalled (args, cb) {
return (showAll || args.indexOf(dir) !== -1) && dir.charAt(0) !== "."
})
// maybe nothing found
- if (!packages.length) cb(null, null)
+ if (!packages.length) cb(null, [])
var p = packages.length
, data = {}