From 8ea86cea41aa038a25a8fee9cd540a7336869dae Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 30 Jan 2021 13:51:32 +0100 Subject: Get rid of the aerc.PushError(" " + $string) idiom The individual callers should not be responsible for padding --- commands/msg/read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg/read.go') diff --git a/commands/msg/read.go b/commands/msg/read.go index 325b776..95becf7 100644 --- a/commands/msg/read.go +++ b/commands/msg/read.go @@ -187,7 +187,7 @@ func submitFlagChange(aerc *widgets.Aerc, store *lib.MessageStore, case *types.Done: wg.Done() case *types.Error: - aerc.PushError(" " + msg.Error.Error()) + aerc.PushError(msg.Error.Error()) *success = false wg.Done() } -- cgit v1.2.3