From b8be6d0b3f8a815c4b89f0556ef89fe42ccf71c8 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Fri, 24 Apr 2020 11:59:46 -0500 Subject: Fixes a null-pointer error introduced by removal of deprecated options. --- cmd/gotop/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go index 5180baf..3c6f930 100644 --- a/cmd/gotop/main.go +++ b/cmd/gotop/main.go @@ -109,12 +109,6 @@ Options: if args["--statusbar"].(bool) { statusbar, _ = args["--statusbar"].(bool) } - if args["--battery"].(bool) { - conf.Layout = "battery" - } - if args["--minimal"].(bool) { - conf.Layout = "minimal" - } if val, _ := args["--export"]; val != nil { conf.ExportPort = val.(string) } -- cgit v1.2.3