mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
linter: enable makezero
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user