summaryrefslogtreecommitdiffstats
path: root/pkg/gui/layout.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-17 20:49:47 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commite87635295a7afde0e82ecee8b820e5708fb2f046 (patch)
treef2063d14c117ed9d76aee902d55618b27cf83f4d /pkg/gui/layout.go
parent62a662054bc40aafd780b8e10912aa7cc21b05b2 (diff)
dont check for error when sending view to bottom
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r--pkg/gui/layout.go9
1 files changed, 2 insertions, 7 deletions
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)