Skip to content

Commit e9d4db4

Browse files
committed
fix publisher sink
1 parent 354a23e commit e9d4db4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/CombineExtensions/Publisher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public extension Publisher {
147147
/// - receiveCompletion: The closure to execute on completion.
148148
/// - Returns: A cancellable instance; used when you end assignment of the received value. Deallocation of the result will tear down the subscription stream.
149149
func sink(receiveValue: @escaping (Output) -> Void) -> AnyCancellable {
150-
return sink(receiveCompletion: { _ in }, receiveValue: { _ in })
150+
return sink(receiveCompletion: { _ in }, receiveValue: receiveValue)
151151
}
152152

153153
/// Attaches a subscriber with closure-based behavior.

Tests/MVVMTests/ScopeTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,3 @@ final class TestComponent: BootstrapComponent, MVVMComponent {
5757

5858
final class Controller: ViewModelController<ContentView.Model> {}
5959
}
60-
61-
extension NeedleFoundation.Component: SharedComponent {}

0 commit comments

Comments
 (0)