mirror of
https://github.com/containers/podman.git
synced 2025-10-20 12:43:58 +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:
@ -10,7 +10,7 @@ import (
|
||||
func DecodeChanges(changes []string) []string {
|
||||
result := make([]string, 0, len(changes))
|
||||
for _, possiblyMultilineChange := range changes {
|
||||
for _, change := range strings.Split(possiblyMultilineChange, "\n") {
|
||||
for change := range strings.SplitSeq(possiblyMultilineChange, "\n") {
|
||||
// In particular, we document that we accept values
|
||||
// like "CMD=/bin/sh", which is not valid Dockerfile
|
||||
// syntax, so we can't just pass such a value directly
|
||||
|
Reference in New Issue
Block a user