Skip to content

Commit d1fae17

Browse files
blicklycopybara-github
authored andcommitted
Get rid of unnecessary unused variable
PiperOrigin-RevId: 928667836
1 parent 3ba19f5 commit d1fae17

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,11 +3175,7 @@ public void testTypedAstFilesystem_extraInputFilesAvailable() {
31753175
compiler.initWithTypedAstFilesystem(
31763176
ImmutableList.of(), ImmutableList.of(file1), compilerOptions, typedAstListStream);
31773177

3178-
assertThrows(
3179-
Exception.class,
3180-
() -> {
3181-
var unused = compiler.getTypedAstDeserializer(file2);
3182-
});
3178+
assertThrows(Exception.class, () -> compiler.getTypedAstDeserializer(file2));
31833179

31843180
Node script = compiler.getRoot().getSecondChild().getFirstChild();
31853181
assertThat(script.getStaticSourceFile()).isSameInstanceAs(file1);

0 commit comments

Comments
 (0)