mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -62,7 +62,7 @@ func CreateExpose(expose []string) (map[uint16]string, error) {
|
||||
}
|
||||
|
||||
var index uint16
|
||||
for index = 0; index < len; index++ {
|
||||
for index = range len {
|
||||
portNum := start + index
|
||||
protocols, ok := toReturn[portNum]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user