Codestyle

This commit is contained in:
Pavel Lukandiy 2017-09-05 11:24:20 +03:00
parent e845758204
commit bba7d7f845
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public extension Single {
/// that subscribes to the resulting sequence.
/// - Returns: An observable sequence whose observers trigger an invocation of the given element factory function.
static func deferredJust(_ elementFactory: @escaping () throws -> Element) -> Single<Element> {
return .create(subscribe: { (observer) -> Disposable in
return .create(subscribe: { observer -> Disposable in
do {
observer(.success(try elementFactory()))
} catch {