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 9150d3c commit 89782b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion coredns/gateway/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func (c *Controller) Start(client dynamic.Interface) error {

logger.Infof("Starting Gateway status Controller")

//nolint:wrapcheck // Let the caller wrap these errors.
c.store, c.informer = cache.NewInformer(&cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
return gwClientset.List(context.TODO(), options)
Expand Down

0 comments on commit 89782b6

Please sign in to comment.