fix: fix slice init length

pull/13197/head
huochexizhan 2 years ago committed by Lucas Bajolet
parent 9076c7b24a
commit 6e417bb883

@ -873,7 +873,7 @@ func (c *Core) renderVarsRecursively() (*interpolate.Context, error) {
Key string
Value string
}
sortedMap := make([]keyValue, len(repeatMap))
sortedMap := make([]keyValue, 0, len(repeatMap))
for _, k := range allKeys {
sortedMap = append(sortedMap, keyValue{k, repeatMap[k]})
}

Loading…
Cancel
Save