Skip to content

Commit

Permalink
Remove extra ImmutableMap.copyOf for already immutable map.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 443369042
  • Loading branch information
joeleba authored and copybara-github committed Apr 21, 2022
1 parent 97cd295 commit a6bd707
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public SkyframeAnalysisResult analyzeAndExecuteTargets(
return SkyframeAnalysisAndExecutionResult.success(
successfulConfiguredTargets,
evaluationResult.getWalkableGraph(),
ImmutableMap.copyOf(successfulAspects),
successfulAspects,
/*packageRoots=*/ null);
}

Expand Down Expand Up @@ -775,7 +775,7 @@ public SkyframeAnalysisResult analyzeAndExecuteTargets(
/*hasActionConflicts=*/ foundActionConflictInLatestCheck,
successfulConfiguredTargets,
evaluationResult.getWalkableGraph(),
ImmutableMap.copyOf(successfulAspects),
successfulAspects,
/*packageRoots=*/ null,
Collections.max(detailedExitCodes, DetailedExitCodeComparator.INSTANCE));
}
Expand Down

0 comments on commit a6bd707

Please sign in to comment.