Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RxRelay/BehaviorRelay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public final class BehaviorRelay<Element>: ObservableType {
///
/// - returns: `Infallible<Element>`
public func asInfallible() -> Infallible<Element> {
asInfallible(onErrorFallbackTo: .empty())
Infallible(self.asObservable())
}
}
2 changes: 1 addition & 1 deletion RxRelay/PublishRelay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public final class PublishRelay<Element>: ObservableType {
///
/// - returns: `Infallible<Element>`
public func asInfallible() -> Infallible<Element> {
asInfallible(onErrorFallbackTo: .empty())
Infallible(self.asObservable())
}
}
2 changes: 1 addition & 1 deletion RxRelay/ReplayRelay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public final class ReplayRelay<Element>: ObservableType {
///
/// - returns: `Infallible<Element>`
public func asInfallible() -> Infallible<Element> {
asInfallible(onErrorFallbackTo: .empty())
Infallible(self.asObservable())
}
}