From bcab8de07272699e218bafb1c37c1871f3640336 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 19 Feb 2020 08:34:43 +0100 Subject: msg/reply: simplify string comparison --- commands/msg/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg') diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 4357874..c5ae1b6 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -95,7 +95,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { } for _, addr := range msg.Envelope.To { address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host) - if strings.ToLower(address) == strings.ToLower(us.Address) { + if strings.EqualFold(address, us.Address) { continue } to = append(to, addr.Format()) -- cgit 1.4.1-2-gfad0