From ad0b6577d5c96c815beef8277baae1cd64829d8b Mon Sep 17 00:00:00 2001 From: Grzegorz Bobryk Date: Sun, 22 Sep 2024 17:24:39 +0200 Subject: [PATCH] [Maintenance] simplify `all` to `none` We can avoid negation in lambda by using `none` instead of `all`. --- .../src/commonMain/kotlin/org/koin/core/KoinLazyExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/koin-core-coroutines/src/commonMain/kotlin/org/koin/core/KoinLazyExt.kt b/projects/core/koin-core-coroutines/src/commonMain/kotlin/org/koin/core/KoinLazyExt.kt index c1d01e03a..3fe0cd35b 100644 --- a/projects/core/koin-core-coroutines/src/commonMain/kotlin/org/koin/core/KoinLazyExt.kt +++ b/projects/core/koin-core-coroutines/src/commonMain/kotlin/org/koin/core/KoinLazyExt.kt @@ -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 } }