fix: errcheck for client.Close in STARTTLS error path

This commit is contained in:
juanatsap
2025-12-02 14:14:02 +00:00
parent ff74946d2d
commit fc63151dcd
+1 -1
View File
@@ -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
}