Minor cleanup
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ data class ExtensionDetailsState(
|
||||
) {
|
||||
|
||||
val sources: List<ExtensionSourceItem>
|
||||
get() = _sources ?: emptyList()
|
||||
get() = _sources.orEmpty()
|
||||
|
||||
val isLoading: Boolean
|
||||
get() = extension == null || _sources == null
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ data class MigrateMangaState(
|
||||
) {
|
||||
|
||||
val titles: List<Manga>
|
||||
get() = titleList ?: emptyList()
|
||||
get() = titleList.orEmpty()
|
||||
|
||||
val isLoading: Boolean
|
||||
get() = source == null || titleList == null
|
||||
|
||||
+1
-1
@@ -311,7 +311,7 @@ class BrowseSourceScreenModel(
|
||||
return getCategories.subscribe()
|
||||
.firstOrNull()
|
||||
?.filterNot { it.isSystemCategory }
|
||||
?: emptyList()
|
||||
.orEmpty()
|
||||
}
|
||||
|
||||
suspend fun getDuplicateLibraryManga(manga: Manga): Manga? {
|
||||
|
||||
Reference in New Issue
Block a user