From b3e6e908aba0b83dd049ee7666326a6bfc0eba0b Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 28 Jul 2018 02:28:23 +0200 Subject: Eliminate the "dest" variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should not change behavior. Signed-off-by: Miloslav Trmač Closes: #1176 Approved by: rhatdan --- libpod/image/pull.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpod/image') 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) } -- cgit v1.2.3-54-g00ecf