From 632df1470c2fece05fb6160b008c4e873cda619a Mon Sep 17 00:00:00 2001 From: eschcam Date: Wed, 7 Dec 2022 12:04:47 +0000 Subject: [PATCH] Fix formatting Signed-off-by: eschcam --- pkg/registry/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 372f0f952..75e1d1d88 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -207,7 +207,7 @@ func (c *Client) Login(host string, options ...LoginOption) error { return nil } -func checkHostExists(host string) (bool, error){ +func checkHostExists(host string) (bool, error) { //Check if host exists if !strings.HasPrefix(host, "https://") && !strings.HasPrefix(host, "http://") { host = "https://" + host @@ -215,7 +215,7 @@ func checkHostExists(host string) (bool, error){ resp, err := http.Get(host) - if err != nil || resp == nil{ + if err != nil || resp == nil { log.Fatalf("Failed to get response from host. Error: %v", err.Error()) return false, err }