From 1041aba123cac3cf3afe06553ea07cbf759370b2 Mon Sep 17 00:00:00 2001 From: soujanyanmbri <54130357+soujanyanmbri@users.noreply.github.com> Date: Fri, 8 Nov 2024 06:31:20 +0530 Subject: [PATCH] Minor fix - remove append --- internal/collections/map.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/collections/map.go b/internal/collections/map.go index 169d02dd..ba6adf35 100644 --- a/internal/collections/map.go +++ b/internal/collections/map.go @@ -51,9 +51,9 @@ func (c *Map) Get(key string) []string { if len(values) == 0 { return nil } - result := make([]string, 0, len(values)) - for _, a := range values { - result = append(result, a.value) + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.value } return result }