Skip to content

Commit

Permalink
Parse options.predef once
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed May 29, 2011
1 parent 3781f60 commit 94d2ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter.js
Expand Up @@ -25,7 +25,7 @@ exports.lint = function(script, options) {
delete options.argv;
options = addDefaults(options);

if (options.predef) {
if (options.predef && !Array.isArray(options.predef)) {
options.predef = options.predef.split(',')
.filter(function (n) { return !!n; });
}
Expand Down

0 comments on commit 94d2ca6

Please sign in to comment.