mirror of
https://github.com/docker/cli.git
synced 2026-11-01 23:35:23 +03:00
remove outdated "nolint" comments
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user