Skip to content

Commit 65961c9

Browse files
committed
Condense map+flatMap into single flatMap.
1 parent 168a137 commit 65961c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageGraph/ModulesGraph+Loading.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ private func prepareProductDependencyNotFoundError(
831831
// if indeed the dependency matches any of the products.
832832
let declProductsAsDependency = packageBuilder.package.products.filter { product in
833833
lookupByProductIDs ? product.identity == dependency.identity : product.name == dependency.name
834-
}.map(\.modules).flatMap { $0 }.filter { t in
834+
}.flatMap(\.modules).filter { t in
835835
t.name != dependency.name
836836
}
837837
if !declProductsAsDependency.isEmpty {

0 commit comments

Comments
 (0)