Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #87 from martndemus/fix-use-lint-tree-false
Browse files Browse the repository at this point in the history
Fixes the useLintTree: false scenario
  • Loading branch information
rwjblue committed Nov 10, 2015
2 parents 459b531 + 6fdfe7d commit 3e7580c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
error: function(data) {
ui.writeLine(data, 'ERROR');
}
}
};
},

init: function() {
Expand Down Expand Up @@ -128,7 +128,8 @@ module.exports = {
lintTree: function(type, tree) {
// Skip if useLintTree === false.
if (this.options['ember-cli-qunit'] && this.options['ember-cli-qunit'].useLintTree === false) {
return tree;
// Fakes an empty broccoli tree
return { inputTree: tree, rebuild: function() { return []; } };
}

var ui = this.ui;
Expand Down

0 comments on commit 3e7580c

Please sign in to comment.