Files
moby/daemon
Sebastiaan van Stijn 5bbf3af980 daemon: fix linting S1016 (staticcheck) false positive
Staticcheck is suggesting to cast the type or to directly copy, but
doesn't account for nat.SortPortMap mutating the second argument, so
mutating the HostConfig.PortBindings. From the code, it looks like the
intent here was to prevent that (creating a deep copy), so let's keep
that.

    daemon/container_operations.go:109:39: S1016: should convert bb (type github.com/docker/docker/vendor/github.com/docker/go-connections/nat.PortBinding) to github.com/docker/docker/vendor/github.com/moby/moby/api/types/container.PortBinding instead of using struct literal (staticcheck)
                    bindings[p] = append(bindings[p], containertypes.PortBinding{
                                                      ^
    daemon/network.go:952:39: S1016: should convert bb (type github.com/docker/docker/vendor/github.com/docker/go-connections/nat.PortBinding) to github.com/docker/docker/vendor/github.com/moby/moby/api/types/container.PortBinding instead of using struct literal (staticcheck)
                    bindings[p] = append(bindings[p], containertypes.PortBinding{
                                                      ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-07-31 02:57:39 +02:00
..
2025-07-30 14:22:31 +02:00
2025-07-30 14:22:30 +02:00
2025-07-21 09:30:05 -07:00
2025-07-28 11:46:19 +02:00
2025-05-30 15:59:13 +02:00
2025-07-24 12:11:19 -07:00
2025-07-24 12:11:51 -07:00
2025-05-30 15:59:13 +02:00
2025-05-30 15:59:13 +02:00
2025-07-21 09:30:05 -07:00
2025-06-27 14:27:21 -07:00
2025-06-27 14:27:21 -07:00
2025-07-24 12:11:19 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:13 +02:00