diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-09 11:34:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-09 12:23:13 +1100 |
commit | e47ad846c4b6100aaff7013a3516d329bde19194 (patch) | |
tree | ead7f3f0a911d7ee4f4f46640c2bf449a74e8e05 /pkg/gui/remotes_panel.go | |
parent | 8f68ac21293f1a0476802974817d9f87875f8743 (diff) |
big golangci-lint cleanup
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index a5bbfeff7..149084869 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -39,9 +39,7 @@ func (gui *Gui) handleRemoteSelect(g *gocui.Gui, v *gocui.View) error { if remote == nil { return gui.newStringTask("main", "No remotes") } - if err := gui.focusPoint(0, gui.State.Panels.Remotes.SelectedLine, len(gui.State.Remotes), v); err != nil { - return err - } + v.FocusPoint(0, gui.State.Panels.Remotes.SelectedLine) return gui.newStringTask("main", fmt.Sprintf("%s\nUrls:\n%s", utils.ColoredString(remote.Name, color.FgGreen), strings.Join(remote.Urls, "\n"))) } |