micro refactor

This commit is contained in:
akkkihi 2023-05-14 19:49:27 +03:00
parent 99982dbdad
commit f03de8c8b4

View File

@ -57,7 +57,9 @@ class MapDiffUtilsTests {
)
private val compareFunWasCalled = booleanArrayOf(false)
private fun <K, V> compareFun(wasCalled: BooleanArray): (K, V, V) -> Boolean = { _, a, b ->
private fun <K, V> compareFun(
wasCalled: BooleanArray
): (K, V, V) -> Boolean = { _, a, b ->
wasCalled[0] = true
a != b
}