Skip to content

Commit

Permalink
Fix linting error with golangci-lint v1.57.1
Browse files Browse the repository at this point in the history
'wrapcheck' no longer flags anonymous functions.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Mar 27, 2024
1 parent 34fe7c5 commit d563ead
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/k8s/k8siface.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func (k *k8sIface) ListGatewayNodes() (*v1.NodeList, error) {
}

func (k *k8sIface) updateLabel(nodeName string, mutate func(existing *v1.Node)) error {
//nolint:wrapcheck // Let the caller wrap these errors.
client := &resource.InterfaceFuncs[*v1.Node]{
GetFunc: func(ctx context.Context, name string, options metav1.GetOptions) (*v1.Node, error) {
return k.clientSet.CoreV1().Nodes().Get(ctx, name, options)
Expand Down

0 comments on commit d563ead

Please sign in to comment.