mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-15 02:12:55 +01:00
Remove redundant empty string check in SCRAM normalization
The existing check for an empty normalized string is unnecessary because the OpaqueString profile in precis already throws an error if an empty string is returned: https://cs.opensource.google/go/x/text/+/master:secure/precis/profiles.go;l=66
This commit is contained in:
parent
d6f256c29e
commit
a1efa1a1ca
1 changed files with 0 additions and 3 deletions
|
@ -310,8 +310,5 @@ func (a *scramAuth) normalizeString(s string) (string, error) {
|
|||
if err != nil {
|
||||
return "", fmt.Errorf("failed to normalize string: %w", err)
|
||||
}
|
||||
if s == "" {
|
||||
return "", errors.New("normalized string is empty")
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue