Eliminate the "dest" variable.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>

Closes: #1176
Approved by: rhatdan
This commit is contained in:
Miloslav Trmač 2018-07-28 02:28:23 +02:00 committed by Atomic Bot
parent e8f7442831
commit b3e6e908ab

View file

@ -119,9 +119,8 @@ func refNamesFromImageReference(ctx context.Context, srcRef types.ImageReference
} }
// Need to load in all the repo tags from the manifest // Need to load in all the repo tags from the manifest
dest := manifest[0].RepoTags
res := []*pullRefName{} res := []*pullRefName{}
for _, dst := range dest { for _, dst := range manifest[0].RepoTags {
pullInfo := getPullRefName(srcRef, dst) pullInfo := getPullRefName(srcRef, dst)
res = append(res, pullInfo) res = append(res, pullInfo)
} }