Skip to content
Browse files

readRules should return array, not undefined

  • Loading branch information...
1 parent 100afb6 commit 8a6839732efff27cd290c14e0c33971bae297198 @isaacs isaacs committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 fstream-npm.js
View
2 fstream-npm.js
@@ -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.
Something went wrong with that request. Please try again.