Make GoLinter happy

This commit is contained in:
Winni Neessen 2022-03-14 15:30:41 +01:00
parent 54da622bd1
commit ebd8f94c1f
Signed by: wneessen
GPG key ID: 385AC9889632126E

1
msg.go
View file

@ -485,7 +485,6 @@ func (m *Msg) WriteToSendmailWithContext(ctx context.Context, sp string, a ...st
return fmt.Errorf("could not start sendmail execution: %w", err) return fmt.Errorf("could not start sendmail execution: %w", err)
} }
_, err = m.Write(si) _, err = m.Write(si)
_, err = si.Write([]byte(".\r\n"))
if err != nil { if err != nil {
_ = si.Close() _ = si.Close()
return fmt.Errorf("failed to write mail to buffer: %w", err) return fmt.Errorf("failed to write mail to buffer: %w", err)