From 6d82885f3cfa32a90f008d4c3e5bb5d4024fd8dd Mon Sep 17 00:00:00 2001 From: Frans-Lukas Date: Fri, 10 Apr 2020 15:20:07 +0200 Subject: [PATCH] #1972 codecov fix --- .../java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt index a376e44cc..60f0b6d63 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt @@ -44,7 +44,7 @@ internal class HistoryPresenter @Inject constructor( { histories: List -> view?.updateHistoryList(histories) }, { e: Throwable -> Log.e("HistoryPresenter", "Failed to load history.", e) } ) - disposable?.takeIf { !it.isDisposed }?.let { it.dispose() } + disposable?.takeIf { !it.isDisposed }?.dispose() disposable = d compositeDisposable.add(d) }