var -> val for lambda

This commit is contained in:
Benoit Marty
2024-09-06 14:46:28 +02:00
parent e4a2bfa9f0
commit 8ce1687bf5
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ private fun createPresenter(
private class FakeAppMigration(
override val order: Int,
var migrateLambda: LambdaNoParamRecorder<Unit> = lambdaRecorder { -> },
val migrateLambda: LambdaNoParamRecorder<Unit> = lambdaRecorder { -> },
) : AppMigration {
override suspend fun migrate() {
migrateLambda()

View File

@@ -22,7 +22,7 @@ import io.element.android.tests.testutils.lambda.lambdaRecorder
import java.io.File
class FakeLogFilesRemover(
var performLambda: LambdaOneParamRecorder<(File) -> Boolean, Unit> = lambdaRecorder<(File) -> Boolean, Unit> { },
val performLambda: LambdaOneParamRecorder<(File) -> Boolean, Unit> = lambdaRecorder<(File) -> Boolean, Unit> { },
) : LogFilesRemover {
override suspend fun perform(predicate: (File) -> Boolean) {
performLambda(predicate)