mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Remove the if statement from OnCommitSuccess
Previously it would only clear the message if the panel had been opened with preserveMessage=true; we don't need this check, because callers know how they opened the panel, and whether they want to clear the message.
This commit is contained in:
parent
26e58b8def
commit
04bacbf9ce
|
|
@ -159,9 +159,7 @@ func (self *CommitsHelper) OpenCommitMessagePanel(opts *OpenCommitMessagePanelOp
|
|||
|
||||
func (self *CommitsHelper) OnCommitSuccess() {
|
||||
// if we have a preserved message we want to clear it on success
|
||||
if self.c.Contexts().CommitMessage.GetPreserveMessage() {
|
||||
self.c.Contexts().CommitMessage.SetPreservedMessageAndLogError("")
|
||||
}
|
||||
self.c.Contexts().CommitMessage.SetPreservedMessageAndLogError("")
|
||||
}
|
||||
|
||||
func (self *CommitsHelper) HandleCommitConfirm() error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue