Skip to content

Commit

Permalink
Merge pull request #2148 from Prajyot-Parab/update
Browse files Browse the repository at this point in the history
upgrade to golangci-lint v1.44.2
  • Loading branch information
k8s-ci-robot authored Mar 4, 2022
2 parents 6e96172 + a2d1cef commit 37dfc68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
ENVSUBST_BIN := envsubst
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)-$(ENVSUBST_VER)

GOLANGCI_LINT_VER := v1.43.0
GOLANGCI_LINT_VER := v1.44.2
GOLANGCI_LINT_BIN := golangci-lint
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)

Expand Down
5 changes: 4 additions & 1 deletion azure/services/loadbalancers/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ func (ac *azureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.Resou

createFuture, err := ac.loadbalancers.CreateOrUpdateSender(req)
if err != nil {
err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", createFuture.Response(), "Failure sending request")
res := createFuture.Response()
err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", res, "Failure sending request")
// response body must be closed
res.Body.Close()
return nil, nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion exp/controllers/azuremanagedmachinepool_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestIsAgentPoolVMSSNotFoundError(t *testing.T) {
},
{
Name: "WithAWrappedNotFoundError",
Err: errors.Wrap(NewAgentPoolVMSSNotFoundError("foo", "baz"), "boom!"),
Err: errors.Wrap(NewAgentPoolVMSSNotFoundError("foo", "baz"), "boom"),
Expected: true,
},
{
Expand Down

0 comments on commit 37dfc68

Please sign in to comment.