diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-28 02:28:23 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:58 +0000 |
commit | b3e6e908aba0b83dd049ee7666326a6bfc0eba0b (patch) | |
tree | 463047d7405eef9d4e4edfb09da10b3c2fad5715 | |
parent | e8f7442831ed1d5b950eee880b44ffb80348c996 (diff) | |
download | podman-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
-rw-r--r-- | libpod/image/pull.go | 3 |
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) } |