We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d70e38 commit 79dbc86Copy full SHA for 79dbc86
src/rules/preferForOfRule.ts
@@ -74,7 +74,6 @@ class PreferForOfWalker extends Lint.RuleWalker {
74
if (indexVariableName != null) {
75
const incrementorState = this.incrementorMap[indexVariableName];
76
if (incrementorState.onlyArrayAccess) {
77
- // Find `array[i]`-like usages by building up a regex
78
const length = incrementorState.endIncrementPos - node.getStart() + 1;
79
const failure = this.createFailure(node.getStart(), length, Rule.FAILURE_STRING);
80
this.addFailure(failure);
0 commit comments