Skip to content

Commit

Permalink
Fix NoError operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Aug 26, 2016
1 parent 8216acb commit 35895bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SignalProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1347,17 +1347,17 @@ extension SignalProtocol where Error == NoError {
}

/// Map each event into a signal and then flatten inner signals.
public func flatMapLatest<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, Error> {
public func flatMapLatest<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, O.Error> {
return castError().flatMapLatest(transform: transform)
}

/// Map each event into a signal and then flatten inner signals.
public func flatMapMerge<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, Error> {
public func flatMapMerge<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, O.Error> {
return castError().flatMapMerge(transform: transform)
}

/// Map each event into a signal and then flatten inner signals.
public func flatMapConcat<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, Error> {
public func flatMapConcat<O: SignalProtocol>(transform: @escaping (Element) -> O) -> Signal<O.Element, O.Error> {
return castError().flatMapConcat(transform: transform)
}
}

0 comments on commit 35895bc

Please sign in to comment.