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.
compactMap
flatMap
1 parent 1bcf98d commit fa96bdfCopy full SHA for fa96bdf
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