1
0
mirror of https://github.com/vector-im/element-android.git synced 2025-07-29 19:41:14 +03:00

Mavericks 2: clean code, but have warnings

This commit is contained in:
ganfra
2021-10-08 16:45:29 +02:00
parent c66d6aab5c
commit 2a29243298
31 changed files with 35 additions and 66 deletions

View File

@ -16,14 +16,12 @@
package org.matrix.android.sdk.flow
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*

View File

@ -36,8 +36,8 @@ class FlowRoom(private val room: Room) {
fun liveRoomSummary(): Flow<Optional<RoomSummary>> {
return room.getRoomSummaryLive().asFlow()
.startWith {
room.roomSummary().toOptional()
.startWith {
room.roomSummary().toOptional()
}
}

View File

@ -16,9 +16,8 @@
package org.matrix.android.sdk.flow
import org.junit.Test
import org.junit.Assert.*
import org.junit.Test
/**
* Example local unit test, which will execute on the development machine (host).