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/tags_panel.go | |
parent | e8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff) |
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/tags_panel.go')
-rw-r--r-- | pkg/gui/tags_panel.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkg/gui/tags_panel.go b/pkg/gui/tags_panel.go index 51ca9298c..0ea86ad2b 100644 --- a/pkg/gui/tags_panel.go +++ b/pkg/gui/tags_panel.go @@ -1,7 +1,6 @@ package gui import ( - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -48,7 +47,7 @@ func (gui *Gui) refreshTags() error { return gui.postRefreshUpdate(gui.Contexts.Tags.Context) } -func (gui *Gui) handleCheckoutTag(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCheckoutTag() error { tag := gui.getSelectedTag() if tag == nil { return nil @@ -59,7 +58,7 @@ func (gui *Gui) handleCheckoutTag(g *gocui.Gui, v *gocui.View) error { return gui.pushContext(gui.Contexts.Branches.Context) } -func (gui *Gui) handleDeleteTag(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleDeleteTag() error { tag := gui.getSelectedTag() if tag == nil { return nil @@ -84,7 +83,7 @@ func (gui *Gui) handleDeleteTag(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handlePushTag(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handlePushTag() error { tag := gui.getSelectedTag() if tag == nil { return nil @@ -111,7 +110,7 @@ func (gui *Gui) handlePushTag(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleCreateTag(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCreateTag() error { return gui.prompt(promptOpts{ title: gui.Tr.CreateTagTitle, handleConfirm: func(tagName string) error { @@ -137,7 +136,7 @@ func (gui *Gui) handleCreateTag(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleCreateResetToTagMenu(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCreateResetToTagMenu() error { tag := gui.getSelectedTag() if tag == nil { return nil |