Removed unneeded default: case in SMTP LOGIN AUTH code

This commit is contained in:
Winni Neessen 2022-03-15 15:54:16 +01:00
parent 85be3f2d0b
commit d0f04353a2
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -61,9 +61,7 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
return []byte(a.username), nil return []byte(a.username), nil
case ServerRespPassword: case ServerRespPassword:
return []byte(a.password), nil 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))
} }