diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2018-05-19 13:38:54 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2018-05-23 17:50:54 +0200 |
commit | f23c00d8701e4bd0f2372a586dacbf66a26f9a51 (patch) | |
tree | 61c5392380b5e0b16b6c076d7b4c8e1961437d11 /integration-cli/docker_cli_save_load_test.go | |
parent | 0846a02d549d3e0a28e7f7962b92af98992eba17 (diff) | |
download | docker-f23c00d8701e4bd0f2372a586dacbf66a26f9a51.tar.gz |
Various code-cleanup
remove unnescessary import aliases, brackets, and so on.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration-cli/docker_cli_save_load_test.go')
-rw-r--r-- | integration-cli/docker_cli_save_load_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integration-cli/docker_cli_save_load_test.go b/integration-cli/docker_cli_save_load_test.go index 3077c0b46d..d370b6cc5e 100644 --- a/integration-cli/docker_cli_save_load_test.go +++ b/integration-cli/docker_cli_save_load_test.go @@ -19,7 +19,7 @@ import ( "github.com/docker/docker/integration-cli/cli/build" "github.com/go-check/check" "github.com/gotestyourself/gotestyourself/icmd" - digest "github.com/opencontainers/go-digest" + "github.com/opencontainers/go-digest" ) // save a repo using gz compression and try to load it using stdout @@ -100,10 +100,10 @@ func (s *DockerSuite) TestSaveCheckTimes(c *check.C) { testRequires(c, DaemonIsLinux) repoName := "busybox:latest" out, _ := dockerCmd(c, "inspect", repoName) - data := []struct { + var data []struct { ID string Created time.Time - }{} + } err := json.Unmarshal([]byte(out), &data) c.Assert(err, checker.IsNil, check.Commentf("failed to marshal from %q: err %v", repoName, err)) c.Assert(len(data), checker.Not(checker.Equals), 0, check.Commentf("failed to marshal the data from %q", repoName)) |