fixed linting issue

Signed-off-by: Yannick Alexander <yannick@alexanderdev.io>
pull/31986/head
Yannick Alexander 2 weeks ago
parent a261f9e8ab
commit 3cea8cea3f
No known key found for this signature in database

@ -237,7 +237,7 @@ var schemeRegex = regexp.MustCompile(`^([a-zA-Z][a-zA-Z0-9+\-.]*:\/\/).*$`)
func validateHost(host string) error {
host = strings.TrimSpace(host)
if host == "" {
return fmt.Errorf("host cannot be empty")
return errors.New("host cannot be empty")
}
// we pre-validate the scheme part here to make sure that we can prepend a dummy scheme for url.Parse without accidentally

Loading…
Cancel
Save