Remove unnecessary var decls

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: cec31abfea0576a9899b861a239ddf9dc1d7672a
Component: engine
This commit is contained in:
Alexander Morozov
2015-11-03 17:03:40 -08:00
parent a0ca658098
commit aaf60225d8

View File

@ -16,11 +16,9 @@ import (
// createContainerPlatformSpecificSettings performs platform specific container create functionality
func createContainerPlatformSpecificSettings(container *Container, config *runconfig.Config, hostConfig *runconfig.HostConfig, img *image.Image) error {
var name, destination string
for spec := range config.Volumes {
name = stringid.GenerateNonCryptoID()
destination = filepath.Clean(spec)
name := stringid.GenerateNonCryptoID()
destination := filepath.Clean(spec)
// Skip volumes for which we already have something mounted on that
// destination because of a --volume-from.