From aaf60225d822ae31a2103fa6e1be3696d00752a5 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 3 Nov 2015 17:03:40 -0800 Subject: [PATCH] Remove unnecessary var decls Signed-off-by: Alexander Morozov Upstream-commit: cec31abfea0576a9899b861a239ddf9dc1d7672a Component: engine --- components/engine/daemon/create_unix.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/engine/daemon/create_unix.go b/components/engine/daemon/create_unix.go index 85fb1cdbee..66138db967 100644 --- a/components/engine/daemon/create_unix.go +++ b/components/engine/daemon/create_unix.go @@ -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.