Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
remove uneccessary type assertion
Browse files Browse the repository at this point in the history
- assertion now uneccessary with using isForStatement from tsutils
  • Loading branch information
rwaskiewicz committed Apr 21, 2018
1 parent 7eda22c commit cc218a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/preferWhileRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Rule extends Lint.Rules.AbstractRule {

const cb = (node: ts.Node): void => {
if (isForStatement(node) && this.doesNodeViolateRule(node)) {
failures.push(this.createFailure(sourceFile, node as ts.ForStatement));
failures.push(this.createFailure(sourceFile, node));
}
return ts.forEachChild(node, cb);
};
Expand Down

0 comments on commit cc218a2

Please sign in to comment.