From 4003eae5f5cfc2c80120ecbdeaf1e0e1d2a8b2e4 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 27 Mar 2024 16:48:31 +0100 Subject: [PATCH] chore(model): Remove a superfluous conversion via `let` The result already is a pair of lists. This is a fixup for 933c7b6. Signed-off-by: Sebastian Schuberth --- model/src/main/kotlin/utils/ConfigurationResolver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/src/main/kotlin/utils/ConfigurationResolver.kt b/model/src/main/kotlin/utils/ConfigurationResolver.kt index f82d44a70b8a2..5009ff4fccb72 100644 --- a/model/src/main/kotlin/utils/ConfigurationResolver.kt +++ b/model/src/main/kotlin/utils/ConfigurationResolver.kt @@ -67,7 +67,7 @@ object ConfigurationResolver { val (applicableCurations, nonApplicableCurations) = curations.partition { curation -> packages.any { pkg -> curation.isApplicable(pkg.id) } - }.let { it.first to it.second } + } if (nonApplicableCurations.isNotEmpty()) { logger.warn {