Skip to content

Commit

Permalink
Merge pull request #1117 from oblivionfallout/master
Browse files Browse the repository at this point in the history
refactor: refactor return err for golint
allencloud authored Apr 12, 2018
2 parents 25fdc7f + f2f4f8c commit 1ef611c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions daemon/mgr/container.go
Original file line number Diff line number Diff line change
@@ -308,15 +308,14 @@ func (mgr *ContainerManager) StartExec(ctx context.Context, execid string, confi
mgr.ExecProcesses.Put(execid, execConfig)
}()

if err = mgr.Client.ExecContainer(ctx, &ctrd.Process{
err = mgr.Client.ExecContainer(ctx, &ctrd.Process{
ContainerID: execConfig.ContainerID,
ExecID: execid,
IO: io,
P: process,
}); err != nil {
return err
}
return nil
})

return err
}

// InspectExec returns low-level information about exec command.

0 comments on commit 1ef611c

Please sign in to comment.