Skip to content

Commit 8c574f8

Browse files
committed
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.
1 parent 7ebf5ff commit 8c574f8

File tree

2 files changed

+101
-101
lines changed

2 files changed

+101
-101
lines changed

pkg/gui/gui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ func (gui *Gui) resetState(startArgs appTypes.StartArgs) types.Context {
586586
return initialContext(contextTree, startArgs)
587587
}
588588

589-
func (self *Gui) getViewBufferManagerForView(view *gocui.View) *tasks.ViewBufferManager {
590-
manager, ok := self.viewBufferManagerMap[view.Name()]
589+
func (gui *Gui) getViewBufferManagerForView(view *gocui.View) *tasks.ViewBufferManager {
590+
manager, ok := gui.viewBufferManagerMap[view.Name()]
591591
if !ok {
592592
return nil
593593
}

0 commit comments

Comments
 (0)