mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Don't shadow err variable
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
32acc76b1a
commit
afa3aec024
1 changed files with 3 additions and 1 deletions
|
@ -724,7 +724,9 @@ func (c *client) Start(_ context.Context, id, _ string, withStdin bool, attachSt
|
|||
// Spin up a go routine waiting for exit to handle cleanup
|
||||
go c.reapProcess(ctr, p)
|
||||
|
||||
dio, err := newIOFromProcess(newProcess, ctr.ociSpec.Process.Terminal)
|
||||
// Don't shadow err here due to our deferred clean-up.
|
||||
var dio *cio.DirectIO
|
||||
dio, err = newIOFromProcess(newProcess, ctr.ociSpec.Process.Terminal)
|
||||
if err != nil {
|
||||
logger.WithError(err).Error("failed to get stdio pipes")
|
||||
return -1, err
|
||||
|
|
Loading…
Reference in a new issue