aboutsummaryrefslogtreecommitdiff
path: root/internal/email/message.go
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 16:37:41 +0800
committerGitHub <noreply@github.com>2022-03-06 16:37:41 +0800
commit09dbbf9a6989c8045e0297c5d62c9e0c2732c1d9 (patch)
tree89e87d402ad163d5eaf93cf10824d0cc471654d9 /internal/email/message.go
parentb7372b1f32cd0bb40984debfb049e3fc04efaee4 (diff)
autofix: fix unused method receiver (#6808)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/email/message.go')
-rw-r--r--internal/email/message.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/email/message.go b/internal/email/message.go
index 118e9855..f7266cf7 100644
--- a/internal/email/message.go
+++ b/internal/email/message.go
@@ -77,7 +77,7 @@ func LoginAuth(username, password string) smtp.Auth {
return &loginAuth{username, password}
}
-func (a *loginAuth) Start(_ *smtp.ServerInfo) (string, []byte, error) {
+func (*loginAuth) Start(_ *smtp.ServerInfo) (string, []byte, error) {
return "LOGIN", []byte{}, nil
}
@@ -97,7 +97,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
type Sender struct{}
-func (s *Sender) Send(from string, to []string, msg io.WriterTo) error {
+func (*Sender) Send(from string, to []string, msg io.WriterTo) error {
opts := conf.Email
host, port, err := net.SplitHostPort(opts.Host)