Skip to content

Commit

Permalink
Silence an error
Browse files Browse the repository at this point in the history
  • Loading branch information
rsiebert committed Sep 11, 2021
1 parent 7d30673 commit 9dbc1a1
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class LiveEvent<T> : MediatorLiveData<T>() {

@MainThread
override fun removeObserver(observer: Observer<in T>) {
if (observers.remove(observer)) {
super.removeObserver(observer)
return
}
val iterator = observers.iterator()
while (iterator.hasNext()) {
val wrapper = iterator.next()
Expand Down

0 comments on commit 9dbc1a1

Please sign in to comment.