From 7037fea43d9e7cbb3cde0d8751a3913aadf9606b Mon Sep 17 00:00:00 2001 From: "v.krupenko" Date: Fri, 26 Jan 2024 15:10:26 +0300 Subject: [PATCH] Replace compactMap with forEach --- .../XcodeProject/Services/XcodeTargetsEditor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RugbyFoundation/XcodeProject/Services/XcodeTargetsEditor.swift b/Sources/RugbyFoundation/XcodeProject/Services/XcodeTargetsEditor.swift index 7337466a..b075b785 100644 --- a/Sources/RugbyFoundation/XcodeProject/Services/XcodeTargetsEditor.swift +++ b/Sources/RugbyFoundation/XcodeProject/Services/XcodeTargetsEditor.swift @@ -47,7 +47,7 @@ final class XcodeTargetsEditor: Loggable { // Remove all dependencies with these targets let targets = try await targetsDataSource.targets.subtracting(targetsForRemove) - try targets.values.compactMap { target in + try targets.values.forEach { target in // Add sub-dependencies of removing dependency explicitly let dependencies = target.explicitDependencies.keysIntersection(targetsForRemove) guard dependencies.isNotEmpty else { return }