diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 22:17:34 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 01:58:19 +0200 |
commit | 883fcf10838879839386091e6375c42b3f0b6a7d (patch) | |
tree | 1ad0d825b241e2f413cff4ad0ba00590d68b9f1e /pkg/gui/status_panel.go | |
parent | a891bc90b78921a64e3abb901c4976788890013a (diff) |
remove useless returned variable
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 88134096e..27e0aba5b 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -2,6 +2,7 @@ package gui import ( "fmt" + "os/exec" "github.com/fatih/color" "github.com/jesseduffield/gocui" @@ -66,7 +67,7 @@ func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error { func (gui *Gui) handleOpenConfig(g *gocui.Gui, v *gocui.View) error { filename := gui.Config.GetUserConfig().ConfigFileUsed() - return gui.genericFileOpen(g, v, filename, gui.OSCommand.OpenFile) + return gui.genericFileOpen(g, v, filename, func(filename string) (*exec.Cmd, error) { return nil, gui.OSCommand.OpenFile(filename) }) } func (gui *Gui) handleEditConfig(g *gocui.Gui, v *gocui.View) error { |