Skip to content

Commit 710b379

Browse files
committed
Update lint message to not mention element access.
1 parent 34ddaef commit 710b379

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/tslint/noIncrementDecrementRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as ts from "typescript";
33

44

55
export class Rule extends Lint.Rules.AbstractRule {
6-
public static POSTFIX_FAILURE_STRING = "Don't use '++' or '--' postfix operators outside statements, for loops, or element access expressions.";
6+
public static POSTFIX_FAILURE_STRING = "Don't use '++' or '--' postfix operators outside statements or for loops.";
77
public static PREFIX_FAILURE_STRING = "Don't use '++' or '--' prefix operators.";
88

99
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {

0 commit comments

Comments
 (0)