diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-11 20:18:50 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-12 18:47:16 +1000 |
commit | 79e73d2effc3232122e1faa3b84d6e3953dbd3c7 (patch) | |
tree | 9d4c5c62acb2da4f5e5a1073b17ca96f129675b7 /pkg/gui/global_handlers.go | |
parent | 23299f88e9c5da84902cc872772333c4ab755946 (diff) |
minor cleanup
WIP
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r-- | pkg/gui/global_handlers.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index d1947eff1..d46e4ab75 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -166,10 +166,8 @@ func (gui *Gui) handleInfoClick(g *gocui.Gui, v *gocui.View) error { return nil } -func (gui *Gui) fetch(g *gocui.Gui, v *gocui.View, canAskForCredentials bool) (unamePassOpend bool, err error) { - unamePassOpend = false +func (gui *Gui) fetch(g *gocui.Gui, v *gocui.View, canAskForCredentials bool) (err error) { err = gui.GitCommand.Fetch(func(passOrUname string) string { - unamePassOpend = true return gui.waitForPassUname(gui.g, v, passOrUname) }, canAskForCredentials) @@ -184,5 +182,5 @@ func (gui *Gui) fetch(g *gocui.Gui, v *gocui.View, canAskForCredentials bool) (u gui.refreshSidePanels(refreshOptions{scope: []int{BRANCHES, COMMITS, REMOTES, TAGS}, mode: ASYNC}) - return unamePassOpend, err + return err } |