aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-07-29 21:12:26 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-04 21:57:45 +0200
commit77a00de741d8fb791bf1e9aab34ff9940385e31a (patch)
treeed673de1eedfa8fee3ab40e5c6e2aae583550030 /commands/msg
parentea2ac83a4db8d531de7edf550b0adc404936e18d (diff)
downloadaerc-77a00de741d8fb791bf1e9aab34ff9940385e31a.tar.gz
lint: remove redundant returns (S1023)
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/recall.go1
-rw-r--r--commands/msg/unsubscribe.go2
2 files changed, 0 insertions, 3 deletions
diff --git a/commands/msg/recall.go b/commands/msg/recall.go
index 1ce6ce6b..f0bafc73 100644
--- a/commands/msg/recall.go
+++ b/commands/msg/recall.go
@@ -131,7 +131,6 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
deleteMessage()
default:
}
- return
},
)
aerc.AddDialog(confirm)
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go
index 8895e6dc..3982f7ba 100644
--- a/commands/msg/unsubscribe.go
+++ b/commands/msg/unsubscribe.go
@@ -105,7 +105,6 @@ func (Unsubscribe) Execute(aerc *widgets.Aerc, args []string) error {
}
}
aerc.PushError("Unsubscribe: selected method not found")
- return
},
)
aerc.AddDialog(dialog)
@@ -190,7 +189,6 @@ func unsubscribeHTTP(aerc *widgets.Aerc, u *url.URL) error {
default:
aerc.PushError("Unsubscribe: link will not be opened")
}
- return
},
)
aerc.AddDialog(confirm)