remove redundant error return
This commit is contained in:
parent
aaf0a0928d
commit
65441fa5b3
1 changed files with 1 additions and 4 deletions
|
|
@ -82,10 +82,7 @@ func (m *Mailer) Send(mail *message) error {
|
|||
msg.SetBody("text/plain", mail.text)
|
||||
msg.AddAlternative("text/html", mail.html)
|
||||
|
||||
if err := m.client.DialAndSend(msg); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return m.client.DialAndSend(msg)
|
||||
}
|
||||
|
||||
// message struct holds all parts of a specific email message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue