From f06d683688e3d2139b14f67b7e349089e7200bf4 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 27 May 2020 07:52:13 +0200 Subject: Remove duration from the status methods We always set 10 seconds anyhow, might as well do that without repeating ourselfs. --- widgets/account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/account.go') diff --git a/widgets/account.go b/widgets/account.go index 564a95d..113cbf7 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "log" - "time" "github.com/gdamore/tcell" @@ -290,7 +289,7 @@ func (acct *AccountView) getSortCriteria() []*types.SortCriterion { } criteria, err := sort.GetSortCriteria(acct.UiConfig().Sort) if err != nil { - acct.aerc.PushError(" ui.sort: "+err.Error(), 10*time.Second) + acct.aerc.PushError(" ui.sort: " + err.Error()) return nil } return criteria -- cgit v1.2.3