remove redundant error return

This commit is contained in:
dhax 2017-11-14 21:38:31 +01:00
parent aaf0a0928d
commit 65441fa5b3

View file

@ -82,10 +82,7 @@ func (m *Mailer) Send(mail *message) error {
msg.SetBody("text/plain", mail.text) msg.SetBody("text/plain", mail.text)
msg.AddAlternative("text/html", mail.html) msg.AddAlternative("text/html", mail.html)
if err := m.client.DialAndSend(msg); err != nil { return m.client.DialAndSend(msg)
return err
}
return nil
} }
// message struct holds all parts of a specific email message. // message struct holds all parts of a specific email message.