fix: errcheck for client.Close in STARTTLS error path
This commit is contained in:
@@ -288,7 +288,7 @@ func (e *EmailService) connectSMTP(addr string) (*smtp.Client, error) {
|
||||
}
|
||||
|
||||
if err = client.StartTLS(tlsConfig); err != nil {
|
||||
client.Close()
|
||||
_ = client.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user