Fix reword error handling: comparing with incorrect class

Follow-up to fe62334
This commit is contained in:
Kirill Likhodedov
2017-06-27 14:52:42 +03:00
parent dfc21a6274
commit 6a845f3593
@@ -78,7 +78,7 @@ class GitRewordOperation(private val repository: GitRepository,
is UndoPossibility.HeadMoved -> notifier.notifyError(errorTitle, "Repository has already been changed")
is UndoPossibility.PushedToProtectedBranch ->
notifier.notifyError(errorTitle, "Commit has already been pushed to ${possibility.branch}")
is Error -> notifier.notifyError(errorTitle, "")
is UndoPossibility.Error -> notifier.notifyError(errorTitle, "")
else -> doUndo()
}
}