Browse code

Remove unnecessary var decls

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Alexander Morozov authored on 2015/11/04 10:03:40
Showing 1 changed files
... ...
@@ -16,11 +16,9 @@ import (
16 16
 
17 17
 // createContainerPlatformSpecificSettings performs platform specific container create functionality
18 18
 func createContainerPlatformSpecificSettings(container *Container, config *runconfig.Config, hostConfig *runconfig.HostConfig, img *image.Image) error {
19
-	var name, destination string
20
-
21 19
 	for spec := range config.Volumes {
22
-		name = stringid.GenerateNonCryptoID()
23
-		destination = filepath.Clean(spec)
20
+		name := stringid.GenerateNonCryptoID()
21
+		destination := filepath.Clean(spec)
24 22
 
25 23
 		// Skip volumes for which we already have something mounted on that
26 24
 		// destination because of a --volume-from.