mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Code quality.
This commit is contained in:
+1
-1
@@ -19,5 +19,5 @@ package io.element.android.features.api
|
|||||||
import io.element.android.libraries.architecture.AsyncData
|
import io.element.android.libraries.architecture.AsyncData
|
||||||
|
|
||||||
data class MigrationState(
|
data class MigrationState(
|
||||||
val migrationAction: AsyncData<Unit> = AsyncData.Uninitialized,
|
val migrationAction: AsyncData<Unit>,
|
||||||
)
|
)
|
||||||
|
|||||||
+8
-10
@@ -74,14 +74,12 @@ class MigrationPresenterTest {
|
|||||||
assertThat(store.applicationMigrationVersion().first()).isEqualTo(MigrationPresenter.MIGRATION_VERSION)
|
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