Fix some coding style issues

This commit is contained in:
Maxime NATUREL 2022-09-06 16:43:38 +02:00
parent 3566b10e3c
commit 047384c08c
5 changed files with 3 additions and 8 deletions

View File

@ -151,4 +151,3 @@ class DevicesViewModel @AssistedInject constructor(
// TODO implement when needed
}
}

View File

@ -17,7 +17,6 @@
package im.vector.app.features.settings.devices.v2
import im.vector.app.core.di.ActiveSessionHolder
import im.vector.app.features.settings.devices.v2.CurrentSessionCrossSigningInfo
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.flow.map

View File

@ -16,7 +16,6 @@
package im.vector.app.features.settings.devices.v2
import im.vector.app.features.settings.devices.v2.CurrentSessionCrossSigningInfo
import org.matrix.android.sdk.api.session.crypto.model.CryptoDeviceInfo
import org.matrix.android.sdk.api.session.crypto.model.RoomEncryptionTrustLevel
import javax.inject.Inject

View File

@ -121,10 +121,8 @@ class DevicesViewModelTest {
// Then
viewModelTest.assertLatestState {
it.devices is Success
&& it.devices.invoke() == deviceFullInfoList
&& it.inactiveSessionsCount == 1
&& it.unverifiedSessionsCount == 1
it.devices is Success && it.devices.invoke() == deviceFullInfoList &&
it.inactiveSessionsCount == 1 && it.unverifiedSessionsCount == 1
}
viewModelTest.finish()
}

View File

@ -66,7 +66,7 @@ class GetDeviceFullInfoListUseCaseTest {
}
@Test
fun `given active session when getting list of device full info then the result list is correct and sorted in descending order`() = runTest(testDispatcher) {
fun `given active session when getting list of device full info then the list is correct and sorted in descending order`() = runTest(testDispatcher) {
// Given
val currentSessionCrossSigningInfo = givenCurrentSessionCrossSigningInfo()
val fakeFlowSession = fakeActiveSessionHolder.fakeSession.givenFlowSession()