Remove unnecessary var decls
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
562a1263f2
commit
cec31abfea
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue