diff --git a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt index f337b30f7..a0c64eb43 100644 --- a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt +++ b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt @@ -2,7 +2,7 @@ package io.legado.app.help.coroutine import kotlinx.coroutines.* -class Coroutine(private val scope: CoroutineScope, private val block: suspend CoroutineScope.() -> T) { +class Coroutine(private val scope: CoroutineScope, block: suspend CoroutineScope.() -> T) { companion object { diff --git a/app/src/main/java/io/legado/app/model/WebBook.kt b/app/src/main/java/io/legado/app/model/WebBook.kt index 1c5bae931..7fb067215 100644 --- a/app/src/main/java/io/legado/app/model/WebBook.kt +++ b/app/src/main/java/io/legado/app/model/WebBook.kt @@ -31,7 +31,7 @@ class WebBook(private val bookSource: BookSource) { } return@launch BookList.analyzeBookList(response, bookSource, analyzeUrl) } - return@launch mutableListOf() + return@launch arrayListOf() } }