Enable detekt rule UseCheckOrError and fix existing issues (and a potential crash on MapboxMap?).
This commit is contained in:
parent
3f372e5804
commit
73347deaaf
4 changed files with 4 additions and 4 deletions
|
|
@ -92,7 +92,7 @@ class ConfirmAccountProviderPresenter @AssistedInject constructor(
|
|||
} else if (matrixHomeServerDetails.supportsPasswordLogin) {
|
||||
LoginFlow.PasswordLogin
|
||||
} else {
|
||||
throw IllegalStateException("Unsupported login flow")
|
||||
error("Unsupported login flow")
|
||||
}
|
||||
}.getOrThrow()
|
||||
}.runCatchingUpdatingState(loginFlowAction, errorTransform = ChangeServerError::from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue