Code quality.
This commit is contained in:
parent
768d7c88bb
commit
cbbda81419
2 changed files with 9 additions and 11 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue