Skip to content

Commit

Permalink
Fix typo in issue message
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 174305030
  • Loading branch information
brandjon authored and katre committed Nov 2, 2017
1 parent b31e465 commit 32fbb07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void visit(ExpressionStatement node) {
}
String message = "expression result not used";
if (expr instanceof ListComprehension && !topLevel) {
message += ". Use a for-loop instead instead of a list comprehension.";
message += ". Use a for-loop instead of a list comprehension.";
}
issues.add(Issue.create(NO_EFFECT_CATEGORY, message, node.getLocation()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void testListComprehensions() throws Exception {
.toString())
.contains(
"2:3-2:30: expression result not used."
+ " Use a for-loop instead instead of a list comprehension. [no-effect]");
+ " Use a for-loop instead of a list comprehension. [no-effect]");
}

@Test
Expand Down

0 comments on commit 32fbb07

Please sign in to comment.