From 149a1aa278202527b22116ca5435c61ddc34e623 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 5 May 2023 11:33:22 +0600 Subject: [PATCH] fix in new applyDiff --- .../commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt index 3f0e43adb4c..11371657298 100644 --- a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt +++ b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt @@ -82,7 +82,7 @@ fun Map.diff( */ fun MutableMap.applyDiff( from: Map, - compareFun: (K, V, V) -> Boolean = { _, first, second -> first == second } + compareFun: (K, V, V) -> Boolean ) { diff(from, compareFun).apply { removed.keys.forEach { remove(it) }