adds missing brackets on multiline if statements

This commit is contained in:
ericdecanini 2022-02-23 17:43:40 +01:00
parent 64e074840b
commit c89f28ffb2

View file

@ -286,10 +286,11 @@ class FtueAuthVariant(
}
private fun handleSignInSelected(state: OnboardingViewState) {
if (vectorFeatures.isForceLoginFallbackEnabled())
if (vectorFeatures.isForceLoginFallbackEnabled()) {
onLoginModeNotSupported(state.loginModeSupportedTypes)
else
} else {
disambiguateLoginMode(state)
}
}
private fun disambiguateLoginMode(state: OnboardingViewState) = when (state.loginMode) {
@ -317,10 +318,11 @@ class FtueAuthVariant(
}
private fun handleSignInWithMatrixId(state: OnboardingViewState) {
if (vectorFeatures.isForceLoginFallbackEnabled())
if (vectorFeatures.isForceLoginFallbackEnabled()) {
onLoginModeNotSupported(state.loginModeSupportedTypes)
else
} else {
openAuthLoginFragmentWithTag(FRAGMENT_LOGIN_TAG)
}
}
private fun openAuthWebFragment() {