Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: constanca <[email protected]>
  • Loading branch information
constanca-m committed Jun 19, 2024
1 parent 420ba93 commit 9b84de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metricbeat/module/kubernetes/util/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 593 in metricbeat/module/kubernetes/util/kubernetes.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

specificMetaGen declared and not used (typecheck)
var generalMetaGen *metadata.Resource

Check failure on line 594 in metricbeat/module/kubernetes/util/kubernetes.go

View workflow job for this annotation

GitHub Actions / lint (darwin)

generalMetaGen declared and not used (typecheck)
// 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 {
Expand Down

0 comments on commit 9b84de8

Please sign in to comment.