Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Commit

Permalink
readRules should return array, not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 17, 2012
1 parent 100afb6 commit 8a68397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fstream-npm.js
Expand Up @@ -173,7 +173,7 @@ Packer.prototype.readRules = function (buf, e) {


buf = buf.toString().trim() buf = buf.toString().trim()


if (buf.length === 0) return if (buf.length === 0) return []


try { try {
var p = this.package = JSON.parse(buf) var p = this.package = JSON.parse(buf)
Expand Down

0 comments on commit 8a68397

Please sign in to comment.