Refactor variable naming in Send method

Renamed variable `cerr` to `err` for consistency. This improves readability and standardizes error variable naming within the method.
This commit is contained in:
Winni Neessen 2024-09-19 10:59:22 +02:00
parent 277ae9be19
commit 3bdb6f7cca
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -9,8 +9,8 @@ package mail
// Send sends out the mail message
func (c *Client) Send(messages ...*Msg) error {
if cerr := c.checkConn(); cerr != nil {
return &SendError{Reason: ErrConnCheck, errlist: []error{cerr}, isTemp: isTempError(cerr)}
if err := c.checkConn(); err != nil {
return &SendError{Reason: ErrConnCheck, errlist: []error{err}, isTemp: isTempError(err)}
}
var errs []*SendError
for _, message := range messages {