Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f0d2ada authored by cketti's avatar cketti
Browse files

Remove unnecessary `else` cases in `when` expressions

parent 6aec3a76
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -622,14 +622,12 @@ class RecipientPresenter(
            SendErrorState.ENABLED_ERROR -> recipientMvpView.showOpenPgpEnabledErrorDialog(false)
            SendErrorState.PROVIDER_ERROR -> recipientMvpView.showErrorOpenPgpConnection()
            SendErrorState.KEY_CONFIG_ERROR -> recipientMvpView.showErrorNoKeyConfigured()
            else -> throw AssertionError("not all error states handled, this is a bug!")
        }
    }

    fun showPgpAttachError(attachErrorState: AttachErrorState) {
        when (attachErrorState) {
            AttachErrorState.IS_INLINE -> recipientMvpView.showErrorInlineAttach()
            else -> throw AssertionError("not all error states handled, this is a bug!")
        }
    }