From b3e6e908aba0b83dd049ee7666326a6bfc0eba0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= <mitr@redhat.com>
Date: Sat, 28 Jul 2018 02:28:23 +0200
Subject: [PATCH] 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č <mitr@redhat.com>

Closes: #1176
Approved by: rhatdan
---
 libpod/image/pull.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index 378664e83b..7c89709d67 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)
 		}