Delete unreachable JSCompiler code branch checking whether languageOut is empty.
The LanguageOut flag defaults to "STABLE" and is never empty.
@@ -1800,9 +1800,6 @@ public class CommandLineRunner extends AbstractCommandLineRunner<Compiler, Compi
}
}
- if (flags.languageOut.isEmpty()) {
- options.setLanguageOut(options.getLanguageIn());
- } else {
CompilerOptions.LanguageMode languageMode =
CompilerOptions.LanguageMode.fromString(flags.languageOut);
if (languageMode == LanguageMode.UNSUPPORTED) {
@@ -1814,7 +1811,6 @@ public class CommandLineRunner extends AbstractCommandLineRunner<Compiler, Compi
} else {
throw new FlagUsageException("Unknown language `" + flags.languageOut + "' specified.");
}
- }
options.setCodingConvention(new ClosureCodingConvention());
