mirror of
https://github.com/containers/podman.git
synced 2025-06-29 06:57:13 +08:00
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
This commit is contained in:

committed by
Atomic Bot

parent
4e285b52c1
commit
b500f9275e
@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user