diff options
author | isaacs <i@izs.me> | 2010-08-03 10:49:32 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-03 10:49:32 +0400 |
commit | ced7eb2bdcf4cb1d20bfdeccef9a2f92c6d1d371 (patch) | |
tree | 176c3947de822f590eb324f98a839dba17b9dd71 /lib | |
parent | 6328c071160db5be77b124ca0ce6a230f1155f1f (diff) |
Always provide a valid array of items, even if empty
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/read-installed.js | 2 |
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 = {} |