Skip to content

Commit

Permalink
fix empty elements in consumer groups array
Browse files Browse the repository at this point in the history
  • Loading branch information
mpicque committed Jan 12, 2024
1 parent c6c1626 commit e45c3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func consumerGroups(config cluster.Config, bootstrapServers []string, sorted *bo

// extract all keys of the map, sort the keys if sorted flag is set
func keys(groups map[string]string, sorted *bool) []string {
keys := make([]string, len(groups))
var keys []string
for consumerGroup, _ := range groups {
keys = append(keys, consumerGroup)
}
Expand Down

0 comments on commit e45c3b6

Please sign in to comment.