From 8dae54ab8ca41c6334c8c664d62b43d487b2914a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 26 Sep 2020 11:51:10 +1000 Subject: [PATCH] fix panic --- pkg/gui/menu_panel.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/gui/menu_panel.go b/pkg/gui/menu_panel.go index 7f84831b7..2f921046a 100644 --- a/pkg/gui/menu_panel.go +++ b/pkg/gui/menu_panel.go @@ -41,10 +41,7 @@ func (gui *Gui) getMenuOptions() map[string]string { } func (gui *Gui) handleMenuClose(g *gocui.Gui, v *gocui.View) error { - err := g.DeleteView("menu") - if err != nil { - return err - } + _ = g.DeleteView("menu") return gui.returnFromContext() }