lint: remove redundant returns (S1023)

Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-07-29 21:12:26 +02:00 committed by Robin Jarry
parent ea2ac83a4d
commit 77a00de741
4 changed files with 0 additions and 5 deletions

View File

@ -139,7 +139,6 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error {
case "Yes":
go importFolder()
}
return
},
)
aerc.AddDialog(confirm)

View File

@ -131,7 +131,6 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
deleteMessage()
default:
}
return
},
)
aerc.AddDialog(confirm)

View File

@ -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)

View File

@ -119,7 +119,6 @@ func newTCPConn(addr string, timeout time.Duration) (*net.TCPConn, error) {
}
done <- tcpConn{newConn, nil}
return
}()
select {