Skip to content

Commit

Permalink
Use an indexed for loop to avoid defining an unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed Oct 4, 2022
1 parent 80838a5 commit e767bcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ErrorReportingRunner(Throwable cause, Class<?>... testClasses) {
@Override
public Description getDescription() {
Description description = Description.createSuiteDescription(classNames);
for (Throwable each : causes) {
for (int i = 0; i < causes.size(); i++) {
description.addChild(describeCause());
}
return description;
Expand Down

0 comments on commit e767bcc

Please sign in to comment.