lint cleanup

This commit is contained in:
Jays2Kings 2021-04-10 19:39:18 -04:00
parent c724a9e022
commit 4805e54b63
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@ import eu.kanade.tachiyomi.source.model.toPageUrl
import eu.kanade.tachiyomi.source.model.toSChapter import eu.kanade.tachiyomi.source.model.toSChapter
import eu.kanade.tachiyomi.source.model.toSManga import eu.kanade.tachiyomi.source.model.toSManga
import eu.kanade.tachiyomi.util.system.awaitSingle import eu.kanade.tachiyomi.util.system.awaitSingle
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import rx.Observable import rx.Observable
import tachiyomi.source.model.ChapterInfo import tachiyomi.source.model.ChapterInfo
import tachiyomi.source.model.MangaInfo import tachiyomi.source.model.MangaInfo

View File

@ -41,7 +41,7 @@ private suspend fun <T> Observable<T>.awaitOne(): T = suspendCancellableCoroutin
} }
override fun onError(e: Throwable) { override fun onError(e: Throwable) {
/* /*
* Rx1 observable throws NoSuchElementException if cancellation happened before * Rx1 observable throws NoSuchElementException if cancellation happened before
* element emission. To mitigate this we try to atomically resume continuation with exception: * element emission. To mitigate this we try to atomically resume continuation with exception:
* if resume failed, then we know that continuation successfully cancelled itself * if resume failed, then we know that continuation successfully cancelled itself