From 9b84de88ad8179686f265b4500e3534e12b7528d Mon Sep 17 00:00:00 2001 From: constanca Date: Wed, 19 Jun 2024 10:10:50 +0200 Subject: [PATCH] lint errors Signed-off-by: constanca --- metricbeat/module/kubernetes/util/kubernetes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metricbeat/module/kubernetes/util/kubernetes.go b/metricbeat/module/kubernetes/util/kubernetes.go index c7f97971373e..f94d424ec0e4 100644 --- a/metricbeat/module/kubernetes/util/kubernetes.go +++ b/metricbeat/module/kubernetes/util/kubernetes.go @@ -590,8 +590,8 @@ func NewResourceMetadataEnricher( return &nilEnricher{} } - var specificMetaGen metadata.MetaGen //nolint:unused // False positive, ignore the lint error that it is not used - var generalMetaGen *metadata.Resource //nolint:unused // False positive, ignore the lint error that it is not used + var specificMetaGen metadata.MetaGen + var generalMetaGen *metadata.Resource // Create the metadata generator to be used in the watcher's event handler. // Both specificMetaGen and generalMetaGen implement Generate method for metadata collection. if resourceName == ServiceResource || resourceName == PodResource {