A little cosmetic cleanup in the wake of the Java 8 migration.
RELNOTES: None.
@@ -863,18 +863,10 @@ public final class BlazeRuntime {
parser.parse(OptionPriority.COMMAND_LINE, null, args);
Map<String, String> optionSources =
parser.getOptions(BlazeServerStartupOptions.class).optionSources;
- Function<String, String> sourceFunction =
- option -> {
- if (!optionSources.containsKey(option)) {
- return "default";
- }
-
- if (optionSources.get(option).isEmpty()) {
- return "command line";
- }
-
- return optionSources.get(option);
- };
+ Function<String, String> sourceFunction = option ->
+ !optionSources.containsKey(option) ? "default"
+ : optionSources.get(option).isEmpty() ? "command line"
+ : optionSources.get(option);
// Then parse the command line again, this time with the correct option sources
parser = OptionsParser.newOptionsParser(optionClasses);
