mirror of
https://github.com/moby/moby.git
synced 2026-07-22 15:32:50 +00:00
connectToNetwork: use locally scoped err
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user