From 3cea8cea3f203f867a9bd31307ca622215f9f645 Mon Sep 17 00:00:00 2001 From: Yannick Alexander Date: Tue, 5 May 2026 17:27:26 +0200 Subject: [PATCH] fixed linting issue Signed-off-by: Yannick Alexander --- pkg/registry/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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