validate: fix typo (#4963)

This commit is contained in:
Denis Mishin 2024-02-16 15:49:37 -05:00 committed by GitHub
parent 513d8bf615
commit b6c100d880
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,10 +69,10 @@ func ValidateURL(u *url.URL) error {
return fmt.Errorf("nil url")
}
if u.Scheme == "" {
return fmt.Errorf("%s url does contain a valid scheme", u.String())
return fmt.Errorf("%s url does not contain a valid scheme", u.String())
}
if u.Host == "" {
return fmt.Errorf("%s url does contain a valid hostname", u.String())
return fmt.Errorf("%s url does not contain a valid hostname", u.String())
}
return nil
}