connectToNetwork: use locally scoped err
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ebe0174f22
commit
bcb4a331f9
1 changed files with 1 additions and 2 deletions
|
@ -726,8 +726,7 @@ func (daemon *Daemon) connectToNetwork(container *container.Container, idOrName
|
|||
}
|
||||
}
|
||||
|
||||
err = daemon.updateNetworkConfig(container, n, endpointConfig, updateSettings)
|
||||
if err != nil {
|
||||
if err := daemon.updateNetworkConfig(container, n, endpointConfig, updateSettings); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue