mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
enable gofumpt formatter
Based on our discussion gofumpt won the vote so use that one via golangci-lint. https://github.com/containers/podman/discussions/27291 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -209,7 +209,7 @@ func makeInspectPortBindings(bindings []types.PortMapping) map[string][]define.I
|
||||
for i := uint16(0); i < port.Range; i++ {
|
||||
key := fmt.Sprintf("%d/%s", port.ContainerPort+i, protocol)
|
||||
hostPorts := portBindings[key]
|
||||
var hostIP = port.HostIP
|
||||
hostIP := port.HostIP
|
||||
if len(port.HostIP) == 0 {
|
||||
hostIP = "0.0.0.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user