Minor cleanup

This commit is contained in:
arkon
2023-04-22 22:29:17 -04:00
parent d62d94f587
commit 67b4e53a58
9 changed files with 14 additions and 14 deletions
@@ -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
@@ -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
@@ -311,7 +311,7 @@ class BrowseSourceScreenModel(
return getCategories.subscribe()
.firstOrNull()
?.filterNot { it.isSystemCategory }
?: emptyList()
.orEmpty()
}
suspend fun getDuplicateLibraryManga(manga: Manga): Manga? {