Skip to content

Commit

Permalink
Bug fix. Set undefined formatter to text
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Feb 18, 2016
1 parent bb568a3 commit dc422b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ helpers.discernFileFormatter = function (fileName) {
var formatter = formatters[format]
// If we don't have a parser for this format, return as text
if (typeof formatter === 'undefined') {
formatter = formatter['txt']
formatter = formatters['txt']
}
return formatter
}
Expand Down

0 comments on commit dc422b2

Please sign in to comment.