Permalink
Browse files

readRules should return array, not undefined

  • Loading branch information...
isaacs committed Apr 17, 2012
1 parent 100afb6 commit 8a6839732efff27cd290c14e0c33971bae297198
Showing with 1 addition and 1 deletion.
  1. +1 −1 fstream-npm.js
View
@@ -173,7 +173,7 @@ Packer.prototype.readRules = function (buf, e) {
buf = buf.toString().trim()
- if (buf.length === 0) return
+ if (buf.length === 0) return []
try {
var p = this.package = JSON.parse(buf)

0 comments on commit 8a68397

Please sign in to comment.