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
@@ -355,7 +355,7 @@ class LibraryScreenModel(
categories
}
displayCategories.associateWith { libraryManga[it.id] ?: emptyList() }
displayCategories.associateWith { libraryManga[it.id].orEmpty() }
}
}
@@ -700,7 +700,7 @@ class LibraryScreenModel(
}
fun getLibraryItemsByPage(page: Int): List<LibraryItem> {
return library.values.toTypedArray().getOrNull(page) ?: emptyList()
return library.values.toTypedArray().getOrNull(page).orEmpty()
}
fun getMangaCountForCategory(category: Category): Int? {