fixed typos and some linter suggestions

This commit is contained in:
Gani Georgiev
2024-01-23 20:56:14 +02:00
parent 80d65a198b
commit aabe820e35
17 changed files with 4635 additions and 4626 deletions
+8 -8
View File
@@ -16,17 +16,17 @@ type TestMailer struct {
}
// Reset clears any previously test collected data.
func (m *TestMailer) Reset() {
m.TotalSend = 0
m.LastMessage = mailer.Message{}
m.SentMessages = nil
func (tm *TestMailer) Reset() {
tm.TotalSend = 0
tm.LastMessage = mailer.Message{}
tm.SentMessages = nil
}
// Send implements `mailer.Mailer` interface.
func (c *TestMailer) Send(m *mailer.Message) error {
c.TotalSend++
c.LastMessage = *m
c.SentMessages = append(c.SentMessages, c.LastMessage)
func (tm *TestMailer) Send(m *mailer.Message) error {
tm.TotalSend++
tm.LastMessage = *m
tm.SentMessages = append(tm.SentMessages, tm.LastMessage)
return nil
}