Skip to content

Commit

Permalink
Simplify a trivial boolean expression in Compiler.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=210983598
  • Loading branch information
nreid260 authored and blickly committed Aug 31, 2018
1 parent 6147ef3 commit 9ae499f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/google/javascript/jscomp/Compiler.java
Expand Up @@ -3316,9 +3316,9 @@ private void removeSyntheticVarsInput() {


@Override @Override
Node ensureLibraryInjected(String resourceName, boolean force) { Node ensureLibraryInjected(String resourceName, boolean force) {
boolean doNotInject = boolean shouldInject =
!force && (options.skipNonTranspilationPasses || options.preventLibraryInjection); force || (!options.skipNonTranspilationPasses && !options.preventLibraryInjection);
if (injectedLibraries.containsKey(resourceName) || doNotInject) { if (injectedLibraries.containsKey(resourceName) || !shouldInject) {
return lastInjectedLibrary; return lastInjectedLibrary;
} }


Expand Down

0 comments on commit 9ae499f

Please sign in to comment.