diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-29 21:11:01 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-04 21:57:43 +0200 |
commit | ea2ac83a4db8d531de7edf550b0adc404936e18d (patch) | |
tree | f9acbd469949c626bc6b4a6d893d2f3f9f005b07 /commands/msg | |
parent | 47b258f709246b295270867d0afe44fdf7f82c05 (diff) | |
download | aerc-ea2ac83a4db8d531de7edf550b0adc404936e18d.tar.gz |
lint: fix function parameters being overwritten before they are used (SA4009)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/msg')
-rw-r--r-- | commands/msg/unsubscribe.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go index bec0f5c8..8895e6dc 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: |