Skip to content

Commit

Permalink
Shorten implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Feb 1, 2025
1 parent 375c40c commit 513c147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Core/AsyncPublisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ extension AsyncPublisher {

private func performOperation() async {
do {
let output = try await operation()
send(output)
send(try await operation())
subscriber?.receive(completion: .finished)
}
catch {
Expand Down

0 comments on commit 513c147

Please sign in to comment.