Tiny cleanup: narrow the scope of two variable declarations.
MOS_MIGRATED_REVID=145827720
@@ -137,8 +137,6 @@ public final class BuildTool {
env.setupPackageCache(request, DefaultsPackage.getDefaultsPackageContent(buildOptions));
ExecutionTool executionTool = null;
- LoadingResult loadingResult = null;
- BuildConfigurationCollection configurations = null;
boolean catastrophe = false;
try {
env.getEventBus().post(new BuildStartingEvent(env, request));
@@ -167,13 +165,13 @@ public final class BuildTool {
env.throwPendingException();
// Target pattern evaluation.
- loadingResult = evaluateTargetPatterns(request, validator);
+ LoadingResult loadingResult = evaluateTargetPatterns(request, validator);
// Exit if there are any pending exceptions from modules.
env.throwPendingException();
// Configuration creation.
- configurations =
+ BuildConfigurationCollection configurations =
env.getSkyframeExecutor()
.createConfigurations(
env.getReporter(),
