mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix reword error handling: comparing with incorrect class
Follow-up to fe62334
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user