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. --- commands/msg/modify-labels.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'commands/msg/modify-labels.go') diff --git a/commands/msg/modify-labels.go b/commands/msg/modify-labels.go index d74aece..02e6478 100644 --- a/commands/msg/modify-labels.go +++ b/commands/msg/modify-labels.go @@ -2,7 +2,6 @@ package msg import ( "errors" - "time" "git.sr.ht/~sircmpwn/aerc/commands" "git.sr.ht/~sircmpwn/aerc/widgets" @@ -56,9 +55,9 @@ func (ModifyLabels) Execute(aerc *widgets.Aerc, args []string) error { switch msg := msg.(type) { case *types.Done: - aerc.PushStatus("labels updated", 10*time.Second) + aerc.PushStatus("labels updated") case *types.Error: - aerc.PushError(" "+msg.Error.Error(), 10*time.Second) + aerc.PushError(" " + msg.Error.Error()) } }) return nil -- cgit v1.2.3