From 97a65daaa574eb2dd2e8bd62bbf67b0f27c21719 Mon Sep 17 00:00:00 2001 From: Tasos Derisiotis <50984242+Eengineer1@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:42:57 +0200 Subject: [PATCH] fix: Removed fixed slice initialisation --- tests/integration/helpers/event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/helpers/event.go b/tests/integration/helpers/event.go index fb1c1966b..1ffc7629f 100644 --- a/tests/integration/helpers/event.go +++ b/tests/integration/helpers/event.go @@ -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,