mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 04:15:12 +00:00
Enable detekt rule UseCheckOrError and fix existing issues (and a potential crash on MapboxMap?).
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ private fun MapView.lifecycleObserver(previousState: MutableState<Lifecycle.Even
|
||||
Lifecycle.Event.ON_DESTROY -> {
|
||||
//handled in onDispose
|
||||
}
|
||||
else -> throw IllegalStateException()
|
||||
Lifecycle.Event.ON_ANY -> Unit
|
||||
}
|
||||
previousState.value = event
|
||||
}
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ class RustMatrixAuthenticationService @Inject constructor(
|
||||
client.restoreSession(sessionData.toSession())
|
||||
createMatrixClient(client)
|
||||
} else {
|
||||
throw IllegalStateException("No session to restore with id $sessionId")
|
||||
error("No session to restore with id $sessionId")
|
||||
}
|
||||
}.mapFailure { failure ->
|
||||
failure.mapClientException()
|
||||
|
||||
Reference in New Issue
Block a user