Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
M0rtyMerr authored and freak4pc committed Mar 3, 2020
1 parent 42c3df9 commit 4edb367
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions RxSwift/Traits/Maybe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ extension PrimitiveSequenceType where Trait == MaybeTrait {
let callStack = [String]()
#endif
let disposable: Disposable
if let disposed = onDisposed {
disposable = Disposables.create(with: disposed)
}
else {
if let onDisposed = onDisposed {
disposable = Disposables.create(with: onDisposed)
} else {
disposable = Disposables.create()
}

Expand Down
7 changes: 3 additions & 4 deletions RxSwift/Traits/Single.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ extension PrimitiveSequenceType where Trait == SingleTrait {
#endif

let disposable: Disposable
if let disposed = onDisposed {
disposable = Disposables.create(with: disposed)
}
else {
if let onDisposed = onDisposed {
disposable = Disposables.create(with: onDisposed)
} else {
disposable = Disposables.create()
}

Expand Down

0 comments on commit 4edb367

Please sign in to comment.