diff --git a/pkg/registry/client.go b/pkg/registry/client.go index fa1e54b3f..5b69a5f64 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -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