summaryrefslogtreecommitdiffstats
path: root/pkg/gui/quitting.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-02 19:20:40 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit798d3e2d54e828f25ed4aadcefff11593fa23e10 (patch)
tree3b68eedd78e13836da8d7b8c46c5862c458f02a0 /pkg/gui/quitting.go
parente8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff)
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/quitting.go')
-rw-r--r--pkg/gui/quitting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/quitting.go b/pkg/gui/quitting.go
index 36c3e34a6..bd2f09f66 100644
--- a/pkg/gui/quitting.go
+++ b/pkg/gui/quitting.go
@@ -24,7 +24,7 @@ func (gui *Gui) recordCurrentDirectory() error {
return gui.OSCommand.CreateFileWithContent(os.Getenv("LAZYGIT_NEW_DIR_FILE"), dirName)
}
-func (gui *Gui) handleQuitWithoutChangingDirectory(g *gocui.Gui, v *gocui.View) error {
+func (gui *Gui) handleQuitWithoutChangingDirectory() error {
gui.State.RetainOriginalDir = true
return gui.quit()
}
@@ -34,7 +34,7 @@ func (gui *Gui) handleQuit() error {
return gui.quit()
}
-func (gui *Gui) handleTopLevelReturn(g *gocui.Gui, v *gocui.View) error {
+func (gui *Gui) handleTopLevelReturn() error {
currentContext := gui.currentContext()
parentContext, hasParent := currentContext.GetParentContext()