Browse code

cluster: Fix shadowed resp variable

The response would never reach the client because it was being
redeclared in the current scope.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>

Aaron Lehmann authored on 2017/03/10 10:58:12
Showing 1 changed files
... ...
@@ -193,7 +193,7 @@ func (c *Cluster) UpdateService(serviceIDOrName string, version uint64, spec typ
193 193
 			}
194 194
 		}
195 195
 
196
-		resp := &apitypes.ServiceUpdateResponse{}
196
+		resp = &apitypes.ServiceUpdateResponse{}
197 197
 
198 198
 		// pin image by digest
199 199
 		if os.Getenv("DOCKER_SERVICE_PREFER_OFFLINE_IMAGE") != "1" {