mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Fix trailing_closure warning
This commit is contained in:
@@ -46,8 +46,9 @@ nonisolated extension CurrentValuePublisher where Failure == Never {
|
||||
/// this struct is discarded when the mapped publisher is chained inline, so anything eager
|
||||
/// (a live subscription feeding a second subject) would be cancelled and stop the updates.
|
||||
func map<T>(_ transform: @escaping (Output) -> T) -> CurrentValuePublisher<T, Never> {
|
||||
.init(upstream: upstream.map(transform).eraseToAnyPublisher(),
|
||||
valueProvider: { transform(value) })
|
||||
.init(upstream: upstream.map(transform).eraseToAnyPublisher()) {
|
||||
transform(value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user