Skip to content

Commit

Permalink
Replace compactMap with forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
v.krupenko authored and swiftyfinch committed Jan 26, 2024
1 parent f71b93e commit 7037fea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 7037fea

Please sign in to comment.