Code quality.
This commit is contained in:
@@ -19,5 +19,5 @@ package io.element.android.features.api
|
||||
import io.element.android.libraries.architecture.AsyncData
|
||||
|
||||
data class MigrationState(
|
||||
val migrationAction: AsyncData<Unit> = AsyncData.Uninitialized,
|
||||
val migrationAction: AsyncData<Unit>,
|
||||
)
|
||||
|
||||
@@ -74,14 +74,12 @@ class MigrationPresenterTest {
|
||||
assertThat(store.applicationMigrationVersion().first()).isEqualTo(MigrationPresenter.MIGRATION_VERSION)
|
||||
}
|
||||
}
|
||||
|
||||
private fun createPresenter(
|
||||
migrationStore: MigrationStore = InMemoryMigrationStore(0),
|
||||
logFilesRemover: LogFilesRemover = FakeLogFilesRemover(lambdaRecorder(ensureNeverCalled = true) { -> }),
|
||||
): MigrationPresenter {
|
||||
return MigrationPresenter(
|
||||
migrationStore = migrationStore,
|
||||
logFilesRemover = logFilesRemover,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private fun createPresenter(
|
||||
migrationStore: MigrationStore = InMemoryMigrationStore(0),
|
||||
logFilesRemover: LogFilesRemover = FakeLogFilesRemover(lambdaRecorder(ensureNeverCalled = true) { -> }),
|
||||
) = MigrationPresenter(
|
||||
migrationStore = migrationStore,
|
||||
logFilesRemover = logFilesRemover,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user