Skip to content

Commit

Permalink
[Fix] Compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Nov 20, 2016
1 parent 94718e4 commit dd4574c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RxSwift/Observables/Implementations/ShareReplay1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ final class ShareReplay1<Element>
_synchronized_on(event).on(event)
}

func _synchronized_on(_ event: Event<E>) -> Bag<AnyObserver<Element>> {
func _synchronized_on(event: Event<E>) -> Bag<AnyObserver<Element>> {
_lock.lock(); defer { _lock.unlock() }
if _stopped {
return Bag()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ final class ShareReplay1WhileConnected<Element>
_synchronized_on(event).on(event)
}

func _synchronized_on(_ event: Event<E>) -> Bag<AnyObserver<Element>> {
func _synchronized_on(event: Event<E>) -> Bag<AnyObserver<Element>> {
_lock.lock(); defer { _lock.unlock() }
switch event {
case .Next(let element):
Expand Down

0 comments on commit dd4574c

Please sign in to comment.