diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-03-21 15:07:06 +0100 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-03-22 13:04:35 +0100 |
commit | 68b94338bac2f3a4ee18f959cc2b214bb22d7fcf (patch) | |
tree | 59fbd767bb9b3953778e7c8291aa2444c3a4847c /libpod | |
parent | 0f12b6fe55f6b5ce70d8c388ec2df35db9feffbb (diff) | |
download | podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.gz podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.bz2 podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.zip |
linter: enable makezero
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/networking_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go index d2d1e12cb..20c8059a5 100644 --- a/libpod/networking_linux.go +++ b/libpod/networking_linux.go @@ -1149,7 +1149,7 @@ func (c *Container) inspectJoinedNetworkNS(networkns string) (q types.StatusBloc // result func resultToBasicNetworkConfig(result types.StatusBlock) (define.InspectBasicNetworkConfig, error) { config := define.InspectBasicNetworkConfig{} - interfaceNames := make([]string, len(result.Interfaces)) + interfaceNames := make([]string, 0, len(result.Interfaces)) for interfaceName := range result.Interfaces { interfaceNames = append(interfaceNames, interfaceName) } |