1
0
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:
Sebastiaan van Stijn
2026-02-11 10:35:26 +01:00
parent eaba9ecf18
commit 9d2816c8a5
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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