Skip to content

Commit

Permalink
[Maintenance] simplify all to none
Browse files Browse the repository at this point in the history
We can avoid negation in lambda by using `none` instead of `all`.
  • Loading branch information
GrzegorzBobryk committed Sep 22, 2024
1 parent 74f9198 commit ad0b657
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ suspend fun Koin.onKoinStarted(block: suspend (Koin) -> Unit) {
*/
@OptIn(KoinInternalApi::class)
fun Koin.isAllStartedJobsDone(): Boolean {
return coroutinesEngine.startJobs.all { !it.isActive }
return coroutinesEngine.startJobs.none { it.isActive }
}

0 comments on commit ad0b657

Please sign in to comment.