Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
tuananhnguyen-ct authored and sstarcher committed Aug 3, 2021
1 parent 6d9e2d3 commit b62ecef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions registries/helm_hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit b62ecef

Please sign in to comment.