mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +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:
@@ -48,7 +48,7 @@ func TestWaitAndClose(t *testing.T) {
|
||||
|
||||
sendMessage(t, proxy, daemon.SdNotifyReady+"\nsomething else\n")
|
||||
done := func() bool {
|
||||
for i := 0; i < 10; i++ {
|
||||
for i := range 10 {
|
||||
select {
|
||||
case err := <-ch:
|
||||
require.NoError(t, err, "Waiting should succeed")
|
||||
|
||||
Reference in New Issue
Block a user