[go: nahoru, domu]

Skip to content

Commit

Permalink
Allow calling beautifyWithWords without a 2nd paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Feb 9, 2014
1 parent 41cf3ab commit 54d94a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beautify-with-words.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function beautifyWithWords (contents, argv) {
};

// Format options to pass to the beautifier
if (argv.b) {
if (argv && argv.b) {
Array.isArray(argv.b) || (argv.b = [ argv.b ]);
argv.b.forEach(function(option) {
if (typeof option !== 'string') return;
Expand Down

0 comments on commit 54d94a9

Please sign in to comment.