Skip to content

Commit

Permalink
correcting events prealloc lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Apr 15, 2024
1 parent bce8fc7 commit 9decff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/autodiscover/providers/kubernetes/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (s *service) emit(svc *kubernetes.Service, flag string) {
}
}

var events []bus.Event
events := []bus.Event{}
for _, port := range svc.Spec.Ports {
event := bus.Event{
"provider": s.uuid,
Expand Down

0 comments on commit 9decff6

Please sign in to comment.