mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +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:
@ -991,7 +991,7 @@ func (c *Container) exec(config *ExecConfig, streams *define.AttachStreams, resi
|
||||
// errors.
|
||||
func (c *Container) cleanupExecBundle(sessionID string) (err error) {
|
||||
path := c.execBundlePath(sessionID)
|
||||
for attempts := 0; attempts < 50; attempts++ {
|
||||
for range 50 {
|
||||
err = os.RemoveAll(path)
|
||||
if err == nil || os.IsNotExist(err) {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user