From 77a00de741d8fb791bf1e9aab34ff9940385e31a Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Fri, 29 Jul 2022 21:12:26 +0200 Subject: [PATCH] lint: remove redundant returns (S1023) Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- commands/account/import-mbox.go | 1 - commands/msg/recall.go | 1 - commands/msg/unsubscribe.go | 2 -- worker/imap/connect.go | 1 - 4 files changed, 5 deletions(-) diff --git a/commands/account/import-mbox.go b/commands/account/import-mbox.go index b497787..9f0e700 100644 --- a/commands/account/import-mbox.go +++ b/commands/account/import-mbox.go @@ -139,7 +139,6 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error { case "Yes": go importFolder() } - return }, ) aerc.AddDialog(confirm) diff --git a/commands/msg/recall.go b/commands/msg/recall.go index 1ce6ce6..f0bafc7 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 8895e6d..3982f7b 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) diff --git a/worker/imap/connect.go b/worker/imap/connect.go index 35fd9b1..7c43b56 100644 --- a/worker/imap/connect.go +++ b/worker/imap/connect.go @@ -119,7 +119,6 @@ func newTCPConn(addr string, timeout time.Duration) (*net.TCPConn, error) { } done <- tcpConn{newConn, nil} - return }() select {