mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-25 15:10:48 +01:00
Removed unneeded default: case in SMTP LOGIN AUTH code
This commit is contained in:
parent
85be3f2d0b
commit
d0f04353a2
1 changed files with 1 additions and 3 deletions
|
@ -61,9 +61,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
|
|||
return []byte(a.username), nil
|
||||
case ServerRespPassword:
|
||||
return []byte(a.password), nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unexpected server response: %s", string(fromServer))
|
||||
}
|
||||
}
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("unexpected server response: %s", string(fromServer))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue