Skip to content

Commit

Permalink
Simplify handling of coffee + lint options
Browse files Browse the repository at this point in the history
  • Loading branch information
Truffula committed Sep 21, 2014
1 parent 2a15982 commit 737a088
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ function CoffeeScriptFilter (inputTree, options) {
this.bare = options.bare;
this.CoffeeLint = CoffeeLint;

if (options.coffeelintOptions) {
this.coffeelintOptions = options.coffeelintOptions;
delete this.options.coffeelintOptions;
} else if (!this.coffeelintOptions) {
this.coffeelintOptions = {};
}
this.coffeelintOptions = options.coffeelintOptions || {};

this.logger = options.logger || console.log.bind(console);

}
Expand Down

0 comments on commit 737a088

Please sign in to comment.