mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
Instantiate Mutexes's fields by value
Instead, pass the entire Mutexes struct by pointer to controllers. This is better because Mutexes now has a zero value and doesn't need to be initialized.
This commit is contained in:
@ -100,8 +100,8 @@ func (self *guiCommon) Model() *types.Model {
|
||||
return self.gui.State.Model
|
||||
}
|
||||
|
||||
func (self *guiCommon) Mutexes() types.Mutexes {
|
||||
return self.gui.Mutexes
|
||||
func (self *guiCommon) Mutexes() *types.Mutexes {
|
||||
return &self.gui.Mutexes
|
||||
}
|
||||
|
||||
func (self *guiCommon) GocuiGui() *gocui.Gui {
|
||||
|
Reference in New Issue
Block a user