Fix gofmt & golint

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: 
Approved by: baude
This commit is contained in:
Matthew Heon
2018-02-27 15:36:36 -05:00
committed by Atomic Bot
parent 780baec1d9
commit 83d7ae6506
5 changed files with 13 additions and 14 deletions

@ -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... // This really ought to be a do-while, but Go doesn't have those...
for found { for found {
found = false found = false
for id, _ := range c.state.ExecSessions { for id := range c.state.ExecSessions {
if id == sessionID { if id == sessionID {
found = true found = true
break break
@ -600,9 +600,8 @@ func (c *Container) Wait() (int32, error) {
} }
if !stopped { if !stopped {
return false, nil return false, nil
} else { // nolint }
return true, nil // nolint return true, nil
} // nolint
}, },
) )
if err != nil { if err != nil {

@ -21,7 +21,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *inspect.Data)
} }
execIDs := []string{} execIDs := []string{}
for id, _ := range c.state.ExecSessions { for id := range c.state.ExecSessions {
execIDs = append(execIDs, id) execIDs = append(execIDs, id)
} }