1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

Remove return value of OpenCommitMessagePanel

Similar to the previous commit: in 100% of the call sites we now need an extra
`return nil`. Nevertheless, I still prefer it this way.
This commit is contained in:
Stefan Haller
2024-09-05 11:13:55 +02:00
parent d4ef8e53d5
commit 064fae41e7
5 changed files with 16 additions and 7 deletions

View File

@ -131,7 +131,7 @@ type OpenCommitMessagePanelOpts struct {
InitialMessage string
}
func (self *CommitsHelper) OpenCommitMessagePanel(opts *OpenCommitMessagePanelOpts) error {
func (self *CommitsHelper) OpenCommitMessagePanel(opts *OpenCommitMessagePanelOpts) {
onConfirm := func(summary string, description string) error {
self.CloseCommitMessagePanel()
@ -150,7 +150,6 @@ func (self *CommitsHelper) OpenCommitMessagePanel(opts *OpenCommitMessagePanelOp
self.UpdateCommitPanelView(opts.InitialMessage)
self.c.Context().Push(self.c.Contexts().CommitMessage)
return nil
}
func (self *CommitsHelper) OnCommitSuccess() {