diff options
author | Reto Brunner <reto@labrat.space> | 2020-02-19 08:34:43 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-02-19 08:34:43 +0100 |
commit | bcab8de07272699e218bafb1c37c1871f3640336 (patch) | |
tree | 0f8b69fba31d353d8519de490f5fc00b1acf5f44 /commands | |
parent | 37fc4d9423151e8ca708c81ec79317b4da835a70 (diff) |
msg/reply: simplify string comparison
Diffstat (limited to 'commands')
-rw-r--r-- | commands/msg/reply.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |