Commit 88dd3e6 1 parent ec52c8f commit 88dd3e6 Copy full SHA for 88dd3e6
File tree 1 file changed +3
-2
lines changed
src/com/google/javascript/jscomp
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3561,10 +3561,11 @@ protected Node getNodeForCodeInsertion(@Nullable JSChunk chunk) {
3561
3561
return this .inputsById .get (SYNTHETIC_CODE_INPUT_ID ).getAstRoot (this );
3562
3562
}
3563
3563
if (chunk == null ) {
3564
- if (chunkGraph == null || Iterables .isEmpty (chunkGraph .getAllInputs ())) {
3564
+ Iterable <CompilerInput > allInputs = chunkGraph .getAllInputs ();
3565
+ if (chunkGraph == null || Iterables .isEmpty (allInputs )) {
3565
3566
throw new IllegalStateException ("No inputs" );
3566
3567
}
3567
- CompilerInput firstInput = Iterables .getFirst (chunkGraph . getAllInputs () , null );
3568
+ CompilerInput firstInput = Iterables .getFirst (allInputs , null );
3568
3569
return checkNotModule (firstInput .getAstRoot (this ), "Cannot insert code into a module" );
3569
3570
}
3570
3571
You can’t perform that action at this time.
0 commit comments