Skip to content

Commit

Permalink
Minor fix - remove append
Browse files Browse the repository at this point in the history
  • Loading branch information
soujanyanmbri committed Nov 8, 2024
1 parent 95fe46e commit 1041aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/collections/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1041aba

Please sign in to comment.