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/reflog_panel.go | |
parent | e8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff) |
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index b089ac526..89293f6b4 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -1,7 +1,6 @@ package gui import ( - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" ) @@ -83,7 +82,7 @@ func (gui *Gui) refreshReflogCommits() error { return gui.postRefreshUpdate(gui.Contexts.ReflogCommits.Context) } -func (gui *Gui) handleCheckoutReflogCommit(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCheckoutReflogCommit() error { commit := gui.getSelectedReflogCommit() if commit == nil { return nil @@ -105,7 +104,7 @@ func (gui *Gui) handleCheckoutReflogCommit(g *gocui.Gui, v *gocui.View) error { return nil } -func (gui *Gui) handleCreateReflogResetMenu(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleCreateReflogResetMenu() error { commit := gui.getSelectedReflogCommit() return gui.createResetMenu(commit.Sha) |