Skip to content

Commit ba372c0

Browse files
committed
Fix quality issue.
1 parent 4869c0b commit ba372c0

File tree

1 file changed

+3
-3
lines changed
  • libraries/matrix/test/src/main/kotlin/io/element/android/libraries/matrix/test/spaces

1 file changed

+3
-3
lines changed

libraries/matrix/test/src/main/kotlin/io/element/android/libraries/matrix/test/spaces/FakeSpaceRoomList.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class FakeSpaceRoomList(
2222
initialSpaceRoomList: SpaceRoomList.PaginationStatus = SpaceRoomList.PaginationStatus.Loading,
2323
private val paginateResult: () -> Result<Unit> = { lambdaError() },
2424
) : SpaceRoomList {
25-
private val _currentSpaceFlow: MutableStateFlow<SpaceRoom?> = MutableStateFlow(initialSpaceFlowValue)
26-
override fun currentSpaceFlow(): Flow<SpaceRoom?> = _currentSpaceFlow.asStateFlow()
25+
private val currentSpaceMutableStateFlow: MutableStateFlow<SpaceRoom?> = MutableStateFlow(initialSpaceFlowValue)
26+
override fun currentSpaceFlow(): Flow<SpaceRoom?> = currentSpaceMutableStateFlow.asStateFlow()
2727

2828
fun emitCurrentSpace(value: SpaceRoom?) {
29-
_currentSpaceFlow.value = value
29+
currentSpaceMutableStateFlow.value = value
3030
}
3131

3232
private val _spaceRoomsFlow: MutableStateFlow<List<SpaceRoom>> = MutableStateFlow(initialSpaceRoomsValue)

0 commit comments

Comments
 (0)