Skip to content

Commit

Permalink
validate: fix typo (#4963)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Feb 16, 2024
1 parent 513d8bf commit b6c100d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/urlutil/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b6c100d

Please sign in to comment.