Skip to content

Commit

Permalink
Extract then
Browse files Browse the repository at this point in the history
  • Loading branch information
erichoracek committed May 15, 2017
1 parent 52516ac commit 7677f20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/CarthageKit/Xcode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -589,19 +589,19 @@ public func buildScheme(_ scheme: String, withOptions options: BuildOptions, inP
.flatMapTaskEvents(.concat) { builtProductURL -> SignalProducer<URL, CarthageError> in
return UUIDsForFramework(builtProductURL)
.collect()
.flatMap(.concat) { uuids -> SignalProducer<URL, CarthageError> in
.flatMap(.concat) { uuids -> SignalProducer<TaskEvent<URL>, CarthageError> in
// Only attempt to create debug info if there is at least
// one dSYM architecture UUID in the framework. This can
// occur if the framework is a static framework packaged
// like a dynamic framework.
if uuids.isEmpty {
return SignalProducer(value: builtProductURL)
return .empty
}

return createDebugInformation(builtProductURL)
.then(SignalProducer<URL, CarthageError>(value: builtProductURL))
}
}
.then(SignalProducer<URL, CarthageError>(value: builtProductURL))
}
}

/// Creates a dSYM for the provided dynamic framework.
Expand Down

0 comments on commit 7677f20

Please sign in to comment.