mirror of
https://github.com/containers/podman.git
synced 2025-11-29 01:28:22 +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:
@@ -174,7 +174,7 @@ func shouldMask(mask string, unmask []string) bool {
|
||||
if strings.ToLower(m) == "all" {
|
||||
return false
|
||||
}
|
||||
for _, m1 := range strings.Split(m, ":") {
|
||||
for m1 := range strings.SplitSeq(m, ":") {
|
||||
match, err := filepath.Match(m1, mask)
|
||||
if err != nil {
|
||||
logrus.Error(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user