Skip to content

Commit

Permalink
Return immediately if indices are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Oct 29, 2023
1 parent e55b741 commit da107b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit da107b7

Please sign in to comment.