mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Cleanup: use the right context for CommitDescriptionController.Context()
It doesn't seem to be used by anything, it looks like we only need to implement the method so that the IController interface is satisfied. But still, it doesn't hurt to be correct here, and might avoid confusion in the future when somebody does try to use the method.
This commit is contained in:
parent
59450c7d12
commit
c2e953a09f
1 changed files with 1 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/context"
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
)
|
||||
|
||||
|
@ -45,11 +44,7 @@ func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOp
|
|||
}
|
||||
|
||||
func (self *CommitDescriptionController) Context() types.Context {
|
||||
return self.context()
|
||||
}
|
||||
|
||||
func (self *CommitDescriptionController) context() *context.CommitMessageContext {
|
||||
return self.c.Contexts().CommitMessage
|
||||
return self.c.Contexts().CommitDescription
|
||||
}
|
||||
|
||||
func (self *CommitDescriptionController) switchToCommitMessage() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue