diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-18 22:29:07 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-18 22:29:07 +1100 |
commit | 160af3bb99c1ca9f45f70e7dbeae05f47da2983b (patch) | |
tree | c5ddbc77badabd1ed8f3d66688c49d18dac67a4e | |
parent | 328b57e2cfe5479a1e128f2fe1944899978a4755 (diff) |
fix typo
-rw-r--r-- | pkg/gui/gui.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 3144a2c3d..8ead65be3 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -436,14 +436,14 @@ func (gui *Gui) promptAnonymousReporting() error { }) } -func (gui *Gui) fetch(g *gocui.Gui, v *gocui.View, canSskForCredentials bool) (unamePassOpend bool, err error) { +func (gui *Gui) fetch(g *gocui.Gui, v *gocui.View, canAskForCredentials bool) (unamePassOpend bool, err error) { unamePassOpend = false err = gui.GitCommand.Fetch(func(passOrUname string) string { unamePassOpend = true return gui.waitForPassUname(gui.g, v, passOrUname) - }, canSskForCredentials) + }, canAskForCredentials) - if canSskForCredentials && err != nil && strings.Contains(err.Error(), "exit status 128") { + if canAskForCredentials && err != nil && strings.Contains(err.Error(), "exit status 128") { colorFunction := color.New(color.FgRed).SprintFunc() coloredMessage := colorFunction(strings.TrimSpace(gui.Tr.SLocalize("PassUnameWrong"))) close := func(g *gocui.Gui, v *gocui.View) error { |