From b62ecef56a9b0bbc07c17464ef65c42bc9fdf0b2 Mon Sep 17 00:00:00 2001 From: Tuan Anh Nguyen Date: Tue, 3 Aug 2021 15:27:34 +0700 Subject: [PATCH] fix indent --- registries/helm_hub.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/registries/helm_hub.go b/registries/helm_hub.go index 1400559..f687f65 100644 --- a/registries/helm_hub.go +++ b/registries/helm_hub.go @@ -60,9 +60,9 @@ func findChart(chart string) (string, error) { url := fmt.Sprintf("https://artifacthub.io/api/chartsvc/v1/charts/search?q=%s", chart) client := &http.Client{} - req, err := http.NewRequest("GET", url, nil) - req.Header.Set("User-Agent", "Go-http-client/1.1") - resp, err := client.Do(req) + req, err := http.NewRequest("GET", url, nil) + req.Header.Set("User-Agent", "Go-http-client/1.1") + resp, err := client.Do(req) if err != nil { return "", err @@ -86,7 +86,7 @@ func findChart(chart string) (string, error) { func getChartVersions(chart string) ([]string, error) { url := fmt.Sprintf("https://artifacthub.io/api/v1/packages/helm/%s", chart) - resp, err := http.Get(url) + resp, err := http.Get(url) if err != nil { return nil, err }