diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go index a9dc11417..3edcb3e0b 100644 --- a/pkg/gui/credentials_panel.go +++ b/pkg/gui/credentials_panel.go @@ -48,10 +48,7 @@ func (gui *Gui) handleSubmitCredential(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleCloseCredentialsView(g *gocui.Gui, v *gocui.View) error { - _, err := g.SetViewOnBottom("credentials") - if err != nil { - return err - } + _, _ = g.SetViewOnBottom("credentials") gui.credentials <- "" return gui.returnFromContext() diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go index 6b0ae0bd3..6ae909415 100644 --- a/pkg/gui/layout.go +++ b/pkg/gui/layout.go @@ -203,10 +203,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { if err.Error() != "unknown view" { return err } - _, err := g.SetViewOnBottom("credentials") - if err != nil { - return err - } + _, _ = g.SetViewOnBottom("credentials") credentialsView.Title = gui.Tr.SLocalize("CredentialsUsername") credentialsView.FgColor = textColor credentialsView.Editable = true @@ -256,9 +253,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { appStatusView.BgColor = gocui.ColorDefault appStatusView.FgColor = gocui.ColorCyan appStatusView.Frame = false - if _, err := g.SetViewOnBottom("appStatus"); err != nil { - return err - } + _, _ = g.SetViewOnBottom("appStatus") } informationView, err := setViewFromDimensions("information", "information", false) diff --git a/pkg/gui/menu_panel.go b/pkg/gui/menu_panel.go index 4ca136215..a75eb6dd9 100644 --- a/pkg/gui/menu_panel.go +++ b/pkg/gui/menu_panel.go @@ -94,11 +94,7 @@ func (gui *Gui) createMenu(title string, items []*menuItem, createMenuOptions cr return err } - if _, err := gui.g.View("menu"); err == nil { - if _, err := gui.g.SetViewOnBottom("menu"); err != nil { - return err - } - } + _, _ = gui.g.SetViewOnBottom("menu") return gui.returnFromContext() }