Skip to content

Commit

Permalink
Ignore bodyclose lint errors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper committed Jul 13, 2023
1 parent 605d15c commit ab1370b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vultr/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func vultrIDFromProviderID(providerID string) (string, error) {

// vultrByID returns a vultr instance for the given id.
func vultrByID(ctx context.Context, client *govultr.Client, id string) (*govultr.Instance, error) {
instance, _, err := client.Instance.Get(ctx, id)
instance, _, err := client.Instance.Get(ctx, id) //nolint:bodyclose
if err != nil {
return nil, err
}
Expand All @@ -193,7 +193,7 @@ func vultrByName(ctx context.Context, client *govultr.Client, nodeName types.Nod

var instances []govultr.Instance
for {
i, meta, _, err := client.Instance.List(ctx, listOptions)
i, meta, _, err := client.Instance.List(ctx, listOptions) //nolint:bodyclose
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion vultr/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (l *loadbalancers) EnsureLoadBalancer(ctx context.Context, clusterName stri
}

lbReq.Region = l.zone
lb2, _, err1 := l.client.LoadBalancer.Create(ctx, lbReq)
lb2, _, err1 := l.client.LoadBalancer.Create(ctx, lbReq) //nolint:bodyclose
if err1 != nil {
return nil, fmt.Errorf("failed to create load-balancer: %s", err1)
}
Expand Down

0 comments on commit ab1370b

Please sign in to comment.