From 89782b6340eff7e61ee6167c697681b96937a2ad Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Tue, 26 Mar 2024 11:20:13 -0400 Subject: [PATCH] Fix linting error with golangci-lint v1.57.1 'wrapcheck' no longer flags anonymous functions. Signed-off-by: Tom Pantelis --- coredns/gateway/controller.go | 1 - 1 file changed, 1 deletion(-) diff --git a/coredns/gateway/controller.go b/coredns/gateway/controller.go index 4c4880c7..bc9ea807 100644 --- a/coredns/gateway/controller.go +++ b/coredns/gateway/controller.go @@ -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)