Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 422818334
  • Loading branch information
Googler authored and copybara-github committed Jan 19, 2022
1 parent 123da96 commit 788ff3e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ public static void init(
.setCcNativeLibraryInfo(ccNativeLibraryInfo)
.build())
.addOutputGroups(
CcCommon.mergeOutputGroups(ImmutableList.of(currentOutputGroups, outputGroups.build())))
CcCommon.mergeOutputGroups(
ImmutableList.of(currentOutputGroups, outputGroups.buildOrThrow())))
.addNativeDeclaredProvider(instrumentedFilesProvider)
.addProvider(RunfilesProvider.withData(defaultRunfiles.build(), dataRunfiles.build()));
}
Expand Down Expand Up @@ -590,7 +591,7 @@ private static Map<String, NestedSet<Artifact>> addLinkerOutputArtifacts(
ImmutableSortedMap.naturalOrder();
if (!ruleContext.attributes().has("alwayslink", Type.BOOLEAN)
|| !ruleContext.attributes().has("linkstatic", Type.BOOLEAN)) {
return outputGroups.build();
return outputGroups.buildOrThrow();
}

if (ruleContext.attributes().get("alwayslink", Type.BOOLEAN)) {
Expand Down Expand Up @@ -635,7 +636,7 @@ private static Map<String, NestedSet<Artifact>> addLinkerOutputArtifacts(

outputGroups.put(ARCHIVE_LIBRARY_OUTPUT_GROUP_NAME, archiveFile.build());
outputGroups.put(DYNAMIC_LIBRARY_OUTPUT_GROUP_NAME, dynamicLibrary.build());
return outputGroups.build();
return outputGroups.buildOrThrow();
}

private static ImmutableList<LibraryToLink> createLibrariesToLinkList(
Expand Down

0 comments on commit 788ff3e

Please sign in to comment.