Skip to content

Commit 3fedc00

Browse files
blicklycopybara-github
authored andcommitted
Slightly simplify immediately returned value
PiperOrigin-RevId: 899852663
1 parent f1a645f commit 3fedc00

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

test/com/google/javascript/jscomp/CommandLineRunnerTest.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3989,13 +3989,10 @@ private ImmutableList<JSError> testExpectedDiagnostics(
39893989
compile(new String[] {input});
39903990

39913991
Compiler compiler = lastCompiler;
3992-
ImmutableList<JSError> actualDiagnostics =
3993-
ImmutableList.<JSError>builder()
3994-
.addAll(compiler.getErrors())
3995-
.addAll(compiler.getWarnings())
3996-
.build();
3997-
3998-
return actualDiagnostics;
3992+
return ImmutableList.<JSError>builder()
3993+
.addAll(compiler.getErrors())
3994+
.addAll(compiler.getWarnings())
3995+
.build();
39993996
}
40003997

40013998
private Node parse(String[] original) {

0 commit comments

Comments
 (0)