diff --git a/core/data/src/main/java/com/looker/core/data/fdroid/repository/offline/OfflineFirstRepoRepository.kt b/core/data/src/main/java/com/looker/core/data/fdroid/repository/offline/OfflineFirstRepoRepository.kt index 50bb96c97..c08412bd0 100644 --- a/core/data/src/main/java/com/looker/core/data/fdroid/repository/offline/OfflineFirstRepoRepository.kt +++ b/core/data/src/main/java/com/looker/core/data/fdroid/repository/offline/OfflineFirstRepoRepository.kt @@ -94,6 +94,7 @@ class OfflineFirstRepoRepository @Inject constructor( e.exceptCancellation() return@supervisorScope false } + if (indices.isEmpty()) return@supervisorScope true indices.forEach { (repo, index) -> val updatedRepo = index!!.repo.toEntity( id = repo.id,