mirror of
https://github.com/gogs/gogs.git
synced 2025-12-23 16:50:02 +01:00
autofix: fix unused method receiver (#6808)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b7372b1f32
commit
09dbbf9a69
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user