Minor cleanup

This commit is contained in:
arkon
2022-06-12 11:29:48 -04:00
parent b96686e6ad
commit 5ccde61ae1
4 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ class GetChapterByMangaId(
suspend fun subscribe(mangaId: Long): Flow<List<Chapter>> {
return try {
chapterRepository.getChapterByMangaIdFlow(mangaId)
chapterRepository.getChapterByMangaIdAsFlow(mangaId)
} catch (e: Exception) {
logcat(LogPriority.ERROR, e)
flowOf(emptyList())

View File

@@ -16,5 +16,5 @@ interface ChapterRepository {
suspend fun getChapterByMangaId(mangaId: Long): List<Chapter>
suspend fun getChapterByMangaIdFlow(mangaId: Long): Flow<List<Chapter>>
suspend fun getChapterByMangaIdAsFlow(mangaId: Long): Flow<List<Chapter>>
}