From ea2ac83a4db8d531de7edf550b0adc404936e18d Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Fri, 29 Jul 2022 21:11:01 +0200 Subject: [PATCH] lint: fix function parameters being overwritten before they are used (SA4009) Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- commands/msg/unsubscribe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go index bec0f5c..8895e6d 100644 --- a/commands/msg/unsubscribe.go +++ b/commands/msg/unsubscribe.go @@ -180,11 +180,11 @@ func unsubscribeHTTP(aerc *widgets.Aerc, u *url.URL) error { "Do you want to open this link?", u.String(), []string{"No", "Yes"}, 0, aerc.SelectedAccountUiConfig(), - func(option string, err error) { + func(option string, _ error) { aerc.CloseDialog() switch option { case "Yes": - if err = lib.NewXDGOpen(u.String()).Start(); err != nil { + if err := lib.NewXDGOpen(u.String()).Start(); err != nil { aerc.PushError("Unsubscribe:" + err.Error()) } default: