mirror of
https://github.com/containers/podman.git
synced 2026-02-19 07:26:18 -05:00
Calling append can lead to resizing the slice. In case we have all elements beforehand, it is not necessary to call append in the first place and this avoid resizing. This is the first part of fixing issues reported by prealloc linter from golangci-lint v2.8.0. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>