Skip to content

Commit 70cdb4a

Browse files
committed
Fix compilation warning in tests.
1 parent 096d575 commit 70cdb4a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/auth/AuthenticationExceptionMappingTests.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ class AuthenticationExceptionMappingTests {
9494
hasMessageThat().isEqualTo(message)
9595
}
9696

97-
private inline fun assertIsOidcError(throwable: Throwable, type: String, message: String) {
97+
private fun assertIsOidcError(throwable: Throwable, type: String, message: String) {
9898
val authenticationException = throwable.mapAuthenticationException()
9999
assertThat(authenticationException).isInstanceOf(AuthenticationException.OidcError::class.java)
100100
assertThat((authenticationException as? AuthenticationException.OidcError)?.type).isEqualTo(type)
101101
assertThat(authenticationException.message).isEqualTo(message)
102102
}
103-
104103
}

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/roomlist/RoomSummaryListProcessorTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ class RoomSummaryListProcessorTests {
191191
fun `Clear removes all the entries`() = runTest {
192192
summaries.value = listOf(aRoomSummaryFilled(roomId = A_ROOM_ID), aRoomSummaryFilled(A_ROOM_ID_2))
193193
val processor = createProcessor()
194-
val index = 0
195194

196195
// Start processing updates
197196
processor.postEntries(listOf())

0 commit comments

Comments
 (0)