Permalink
Browse files

return empty array instead of undefined if JSON.parse() fails

  • Loading branch information...
1 parent 91a33af commit d8714fb767f83107c40ab3f46de0de86e3c47217 Lars-Magnus Skog committed with isaacs Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 fstream-npm.js
View
@@ -190,7 +190,7 @@ Packer.prototype.readRules = function (buf, e) {
} catch (er) {
er.file = path.resolve(this.path, e)
this.error(er)
- return
+ return []
}
if (this === this.root) {

0 comments on commit d8714fb

Please sign in to comment.