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

Fix warning ST1016: methods on the same type should have the same receiver name

Most methods use gui as a receiver name (120 of them), so switch the few that
use self over to that too.
This commit is contained in:
Stefan Haller
2025-06-20 19:49:46 +02:00
parent 7ebf5fff0f
commit 8c574f888c
2 changed files with 101 additions and 101 deletions

View File

@ -586,8 +586,8 @@ func (gui *Gui) resetState(startArgs appTypes.StartArgs) types.Context {
return initialContext(contextTree, startArgs)
}
func (self *Gui) getViewBufferManagerForView(view *gocui.View) *tasks.ViewBufferManager {
manager, ok := self.viewBufferManagerMap[view.Name()]
func (gui *Gui) getViewBufferManagerForView(view *gocui.View) *tasks.ViewBufferManager {
manager, ok := gui.viewBufferManagerMap[view.Name()]
if !ok {
return nil
}