diff --git a/cli/command/formatter/container.go b/cli/command/formatter/container.go index 979d3eb82d..fafa6a56e0 100644 --- a/cli/command/formatter/container.go +++ b/cli/command/formatter/container.go @@ -350,7 +350,7 @@ func DisplayablePorts(ports []container.PortSummary) string { last uint16 } groupMap := make(map[string]*portGroup) - var result []string //nolint:prealloc + var result []string var hostMappings []string var groupMapKeys []string sort.Slice(ports, func(i, j int) bool { diff --git a/cli/command/service/update.go b/cli/command/service/update.go index 54e83d442e..65ecb0b4dd 100644 --- a/cli/command/service/update.go +++ b/cli/command/service/update.go @@ -1333,7 +1333,7 @@ func updateNetworks(ctx context.Context, apiClient client.NetworkAPIClient, flag } existingNetworks := make(map[string]struct{}) - var newNetworks []swarm.NetworkAttachmentConfig //nolint:prealloc + var newNetworks []swarm.NetworkAttachmentConfig for _, nw := range specNetworks { if _, exists := idsToRemove[nw.Target]; exists { continue