We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bcf98d + fa96bdf commit 0ec111dCopy full SHA for 0ec111d
Sources/PackageLoading/PackageBuilder.swift
@@ -845,7 +845,7 @@ public final class PackageBuilder {
845
conditions.append(condition)
846
}
847
848
- if let platforms = condition?.platformNames.flatMap({ platformRegistry.platformByName[$0] }), !platforms.isEmpty {
+ if let platforms = condition?.platformNames.compactMap({ platformRegistry.platformByName[$0] }), !platforms.isEmpty {
849
let condition = PlatformsCondition(platforms: platforms)
850
851
0 commit comments