Skip to content

Commit

Permalink
Fix golint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudziu committed Jan 8, 2024
1 parent 93bfcc2 commit 51994d4
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package autoscaler

import (
"context"
"encoding/json"
"fmt"
"io"
Expand Down Expand Up @@ -210,9 +211,13 @@ func getClusterAutoscaleVersions() ([]string, error) {
var TagsResponse TagsResponse

// Query CA registry
response, err := http.Get(clusterAutoscalerRegistry)
req, err := http.NewRequestWithContext(context.TODO(), http.MethodGet, clusterAutoscalerRegistry, nil)
if err != nil {
return nil, err
return nil, err

Check failure on line 216 in services/kuber/server/domain/utils/autoscaler/cluster_autoscaler.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gofmt`-ed with `-s` (gofmt)
}
response, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
}
defer response.Body.Close()

Expand Down

0 comments on commit 51994d4

Please sign in to comment.