Fix golint errors

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-02 15:24:11 +01:00
parent b11ce54ccc
commit ece54f1616
38 changed files with 134 additions and 204 deletions

View File

@@ -92,13 +92,13 @@ func (m *Mailer) sendMailWithTimeout(ctx context.Context, to []string, msg []byt
if err != nil {
return fmt.Errorf("connection error: %w", err)
}
defer conn.Close()
defer func() { _ = conn.Close() }()
c, err := smtp.NewClient(conn, host)
if err != nil {
return fmt.Errorf("SMTP client creation error: %w", err)
}
defer c.Quit()
defer func() { _ = c.Quit() }()
if m.cfg.TLSRequired {
if err := c.StartTLS(&tls.Config{ServerName: host}); err != nil {