From bcb4a331f9c02aa993402e50fca2867f3021632e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 20 Mar 2019 10:16:22 +0100 Subject: [PATCH] connectToNetwork: use locally scoped err Signed-off-by: Sebastiaan van Stijn --- daemon/container_operations.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/container_operations.go b/daemon/container_operations.go index 3c08e10657..b62bfec898 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -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 }