diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-18 23:58:20 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-23 12:44:38 +0000 |
commit | b500f9275e9152d2fee9287edbe3db80e4bf9ac6 (patch) | |
tree | ddd6d65001f436edcf84a0c5f0468cb1aa95f65c /libpod/image | |
parent | 4e285b52c1281db8ef7dff54071f016531ba7e88 (diff) | |
download | podman-b500f9275e9152d2fee9287edbe3db80e4bf9ac6.tar.gz podman-b500f9275e9152d2fee9287edbe3db80e4bf9ac6.tar.bz2 podman-b500f9275e9152d2fee9287edbe3db80e4bf9ac6.zip |
Rename local variables in Runtime.pullRefPairsFromRefNames
... to be more conventional.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1112
Approved by: rhatdan
Diffstat (limited to 'libpod/image')
-rw-r--r-- | libpod/image/pull.go | 14 |
1 files 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, } } |