From be412812f9972679dfc0d8778bb7681ec03b7180 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 5 Oct 2017 10:45:51 +0000 Subject: [PATCH] Remove unused variable assignment --- prog/weaveutil/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/weaveutil/volume.go b/prog/weaveutil/volume.go index e193256b..2ff91223 100644 --- a/prog/weaveutil/volume.go +++ b/prog/weaveutil/volume.go @@ -33,7 +33,7 @@ func createVolumeContainer(args []string) error { labels := map[string]string{label: ""} config := docker.Config{Image: image, Volumes: volumes, Labels: labels, Entrypoint: []string{"data-only"}} hostConfig := docker.HostConfig{} - container, err = c.CreateContainer(docker.CreateContainerOptions{Name: containerName, Config: &config, HostConfig: &hostConfig}) + _, err = c.CreateContainer(docker.CreateContainerOptions{Name: containerName, Config: &config, HostConfig: &hostConfig}) if err != nil { return fmt.Errorf("unable to create container: %s", err) }