Fix typo in error message in normalizeString function

Corrected the spelling of "failed" in the error handling branch of the normalizeString function within smtp/auth_scram.go. This change addresses a minor typographical error to ensure the error message is clear and accurate.
This commit is contained in:
Winni Neessen 2024-11-08 22:30:46 +01:00
parent d4c6cb506c
commit d6f256c29e
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -308,7 +308,7 @@ func (a *scramAuth) normalizeUsername() (string, error) {
func (a *scramAuth) normalizeString(s string) (string, error) { func (a *scramAuth) normalizeString(s string) (string, error) {
s, err := precis.OpaqueString.String(s) s, err := precis.OpaqueString.String(s)
if err != nil { if err != nil {
return "", fmt.Errorf("failled to normalize string: %w", err) return "", fmt.Errorf("failed to normalize string: %w", err)
} }
if s == "" { if s == "" {
return "", errors.New("normalized string is empty") return "", errors.New("normalized string is empty")