diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 19:20:40 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 798d3e2d54e828f25ed4aadcefff11593fa23e10 (patch) | |
tree | 3b68eedd78e13836da8d7b8c46c5862c458f02a0 /pkg/gui/remotes_panel.go | |
parent | e8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff) |
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index d99bcbb08..3c18aa212 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -5,7 +5,6 @@ import ( "strings" "github.com/fatih/color" - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -84,7 +83,7 @@ func (gui *Gui) handleRemoteEnter() error { return gui.pushContext(gui.Contexts.Remotes.Branches.Context) } -func (gui *Gui) handleAddRemote(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleAddRemote() error { return gui.prompt(promptOpts{ title: gui.Tr.LcNewRemoteName, handleConfirm: func(remoteName string) error { @@ -102,7 +101,7 @@ func (gui *Gui) handleAddRemote(g *gocui.Gui, v *gocui.View) error { } -func (gui *Gui) handleRemoveRemote(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleRemoveRemote() error { remote := gui.getSelectedRemote() if remote == nil { return nil @@ -121,7 +120,7 @@ func (gui *Gui) handleRemoveRemote(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleEditRemote(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleEditRemote() error { remote := gui.getSelectedRemote() if remote == nil { return nil @@ -171,7 +170,7 @@ func (gui *Gui) handleEditRemote(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleFetchRemote(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleFetchRemote() error { remote := gui.getSelectedRemote() if remote == nil { return nil |