summaryrefslogtreecommitdiff
path: root/libpod/image/pull.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-28 02:28:23 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:58 +0000
commitb3e6e908aba0b83dd049ee7666326a6bfc0eba0b (patch)
tree463047d7405eef9d4e4edfb09da10b3c2fad5715 /libpod/image/pull.go
parente8f7442831ed1d5b950eee880b44ffb80348c996 (diff)
downloadpodman-b3e6e908aba0b83dd049ee7666326a6bfc0eba0b.tar.gz
podman-b3e6e908aba0b83dd049ee7666326a6bfc0eba0b.tar.bz2
podman-b3e6e908aba0b83dd049ee7666326a6bfc0eba0b.zip
Eliminate the "dest" variable.
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1176 Approved by: rhatdan
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r--libpod/image/pull.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index 378664e83..7c89709d6 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -119,9 +119,8 @@ func refNamesFromImageReference(ctx context.Context, srcRef types.ImageReference
}
// Need to load in all the repo tags from the manifest
- dest := manifest[0].RepoTags
res := []*pullRefName{}
- for _, dst := range dest {
+ for _, dst := range manifest[0].RepoTags {
pullInfo := getPullRefName(srcRef, dst)
res = append(res, pullInfo)
}