mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +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
|
/// 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.
|
/// (a live subscription feeding a second subject) would be cancelled and stop the updates.
|
||||||
func map<T>(_ transform: @escaping (Output) -> T) -> CurrentValuePublisher<T, Never> {
|
func map<T>(_ transform: @escaping (Output) -> T) -> CurrentValuePublisher<T, Never> {
|
||||||
.init(upstream: upstream.map(transform).eraseToAnyPublisher(),
|
.init(upstream: upstream.map(transform).eraseToAnyPublisher()) {
|
||||||
valueProvider: { transform(value) })
|
transform(value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user