mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-09 15:32:54 +01:00
Simplify error return to make golangci-lint happy
This commit is contained in:
parent
8463f8524a
commit
b8ee25f014
1 changed files with 2 additions and 6 deletions
|
@ -108,12 +108,8 @@ func (c *Client) Send(ml ...*Msg) error {
|
|||
if len(errs) > 1 {
|
||||
re := &SendError{Reason: ErrAmbiguous}
|
||||
for i := range errs {
|
||||
for _, e := range errs[i].errlist {
|
||||
re.errlist = append(re.errlist, e)
|
||||
}
|
||||
for _, r := range errs[i].rcpt {
|
||||
re.rcpt = append(re.rcpt, r)
|
||||
}
|
||||
re.errlist = append(re.errlist, errs[i].errlist...)
|
||||
re.rcpt = append(re.rcpt, errs[i].rcpt...)
|
||||
}
|
||||
|
||||
// We assume that the isTemp flage from the last error we received should be the
|
||||
|
|
Loading…
Reference in a new issue