From b500f9275e9152d2fee9287edbe3db80e4bf9ac6 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Wed, 18 Jul 2018 23:58:20 +0200 Subject: Rename local variables in Runtime.pullRefPairsFromRefNames MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... to be more conventional. Should not change behavior. Signed-off-by: Miloslav Trmač Closes: #1112 Approved by: rhatdan --- libpod/image/pull.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libpod/image/pull.go b/libpod/image/pull.go index a8d5f518c..f3b3ad5d9 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -324,17 +324,17 @@ func (i *Image) createNamesToPull() ([]*pullRefPair, error) { } // pullRefPairsFromNames converts a []*pullRefName to []*pullRefPair -func (ir *Runtime) pullRefPairsFromRefNames(pullNames []*pullRefName) ([]*pullRefPair, error) { +func (ir *Runtime) pullRefPairsFromRefNames(refNames []*pullRefName) ([]*pullRefPair, error) { // Here we construct the destination references - res := make([]*pullRefPair, len(pullNames)) - for j, pStruct := range pullNames { - destRef, err := is.Transport.ParseStoreReference(ir.store, pStruct.dstName) + res := make([]*pullRefPair, len(refNames)) + for i, rn := range refNames { + destRef, err := is.Transport.ParseStoreReference(ir.store, rn.dstName) if err != nil { return nil, errors.Wrapf(err, "error parsing dest reference name") } - res[j] = &pullRefPair{ - image: pStruct.image, - srcRef: pStruct.srcRef, + res[i] = &pullRefPair{ + image: rn.image, + srcRef: rn.srcRef, dstRef: destRef, } } -- cgit v1.2.3-54-g00ecf