diff options
author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2022-03-06 15:46:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 15:46:21 +0800 |
commit | 3acc13038dfe5e0643112140d329c6eb0ed4cd6a (patch) | |
tree | 7205f5757e00f509670cbd61e7b01dfaf8092f11 /internal/email | |
parent | ab96a4f0d840987797e79ec7e3a4b02a7b6880e7 (diff) |
autofix: unused parameter should be replaced by underscore (#6799)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/email')
-rw-r--r-- | internal/email/email.go | 2 | ||||
-rw-r--r-- | internal/email/message.go | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/internal/email/email.go b/internal/email/email.go index 917e6665..81b772ea 100644 --- a/internal/email/email.go +++ b/internal/email/email.go @@ -102,7 +102,7 @@ type Issue interface { HTMLURL() string } -func SendUserMail(c *macaron.Context, u User, tpl, code, subject, info string) { +func SendUserMail(_ *macaron.Context, u User, tpl, code, subject, info string) { data := map[string]interface{}{ "Username": u.DisplayName(), "ActiveCodeLives": conf.Auth.ActivateCodeLives / 60, diff --git a/internal/email/message.go b/internal/email/message.go index ec4f7cc1..587db161 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(server *smtp.ServerInfo) (string, []byte, error) { +func (a *loginAuth) Start(_ *smtp.ServerInfo) (string, []byte, error) { return "LOGIN", []byte{}, nil } @@ -95,8 +95,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) { return nil, nil } -type Sender struct { -} +type Sender struct{} func (s *Sender) Send(from string, to []string, msg io.WriterTo) error { opts := conf.Email |