Skip to content

Commit

Permalink
Merge pull request #375 from bmish/no-test-and-then-optimize-filename…
Browse files Browse the repository at this point in the history
…-check

no-test-and-then: slight optimization
  • Loading branch information
bmish committed Jan 16, 2019
2 parents 4a624a8 + b086934 commit 0f250b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rules/no-test-and-then.js
Expand Up @@ -21,12 +21,12 @@ module.exports = {
},

create(context) {
if (!emberUtils.isTestFile(context.getFilename())) {
return {};
}

return {
CallExpression(node) {
if (!emberUtils.isTestFile(context.getFilename())) {
return;
}

const callee = node.callee;
if (utils.isIdentifier(callee) && callee.name === 'andThen') {
context.report({
Expand Down

0 comments on commit 0f250b0

Please sign in to comment.