Skip to content

Commit

Permalink
fix: Removed fixed slice initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Jan 7, 2025
1 parent 6c8d0d7 commit 97a65da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/helpers/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type HumanReadableEvent struct {
}

func ReadableEvents(events []types.Event) []HumanReadableEvent {
readableEvents := make([]HumanReadableEvent, 0, len(events))
readableEvents := make([]HumanReadableEvent, len(events))
for _, event := range events {
readableAttributes := make([]HumanReadableEventAttribute, 0, len(event.Attributes))
readableAttributes := make([]HumanReadableEventAttribute, len(event.Attributes))
for i, attribute := range event.Attributes {
readableAttributes[i] = HumanReadableEventAttribute{
Key: attribute.Key,
Expand Down

0 comments on commit 97a65da

Please sign in to comment.