Skip to content

Commit 37dfc68

Browse files
authored
Merge pull request #2148 from Prajyot-Parab/update
upgrade to golangci-lint v1.44.2
2 parents 6e96172 + a2d1cef commit 37dfc68

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
7676
ENVSUBST_BIN := envsubst
7777
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)-$(ENVSUBST_VER)
7878

79-
GOLANGCI_LINT_VER := v1.43.0
79+
GOLANGCI_LINT_VER := v1.44.2
8080
GOLANGCI_LINT_BIN := golangci-lint
8181
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
8282

azure/services/loadbalancers/client.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ func (ac *azureClient) CreateOrUpdateAsync(ctx context.Context, spec azure.Resou
8585

8686
createFuture, err := ac.loadbalancers.CreateOrUpdateSender(req)
8787
if err != nil {
88-
err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", createFuture.Response(), "Failure sending request")
88+
res := createFuture.Response()
89+
err = autorest.NewErrorWithError(err, "network.LoadBalancersClient", "CreateOrUpdate", res, "Failure sending request")
90+
// response body must be closed
91+
res.Body.Close()
8992
return nil, nil, err
9093
}
9194

exp/controllers/azuremanagedmachinepool_reconciler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestIsAgentPoolVMSSNotFoundError(t *testing.T) {
3636
},
3737
{
3838
Name: "WithAWrappedNotFoundError",
39-
Err: errors.Wrap(NewAgentPoolVMSSNotFoundError("foo", "baz"), "boom!"),
39+
Err: errors.Wrap(NewAgentPoolVMSSNotFoundError("foo", "baz"), "boom"),
4040
Expected: true,
4141
},
4242
{

0 commit comments

Comments
 (0)