mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Fix gofmt & golint
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #412 Approved by: baude
This commit is contained in:
@ -252,7 +252,7 @@ func (c *Container) Exec(tty, privileged bool, env, cmd []string, user string) e
|
||||
// This really ought to be a do-while, but Go doesn't have those...
|
||||
for found {
|
||||
found = false
|
||||
for id, _ := range c.state.ExecSessions {
|
||||
for id := range c.state.ExecSessions {
|
||||
if id == sessionID {
|
||||
found = true
|
||||
break
|
||||
@ -600,9 +600,8 @@ func (c *Container) Wait() (int32, error) {
|
||||
}
|
||||
if !stopped {
|
||||
return false, nil
|
||||
} else { // nolint
|
||||
return true, nil // nolint
|
||||
} // nolint
|
||||
}
|
||||
return true, nil
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
@ -21,7 +21,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *inspect.Data)
|
||||
}
|
||||
|
||||
execIDs := []string{}
|
||||
for id, _ := range c.state.ExecSessions {
|
||||
for id := range c.state.ExecSessions {
|
||||
execIDs = append(execIDs, id)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user