Remove a pointless nested set expansion.
Closes
@@ -345,7 +345,7 @@ public final class Runfiles implements RunfilesApi {
@Override
public NestedSet<Artifact> getArtifacts() {
NestedSetBuilder<Artifact> allArtifacts = NestedSetBuilder.stableOrder();
- allArtifacts.addAll(unconditionalArtifacts.toCollection());
+ allArtifacts.addTransitive(unconditionalArtifacts);
for (PruningManifest manifest : getPruningManifests()) {
allArtifacts.addTransitive(manifest.getCandidateRunfiles());
}
