Trivial simplification

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2020-02-07 01:52:04 +01:00
parent d9bfaf5197
commit a433b858d2
1 changed files with 1 additions and 2 deletions

View File

@ -169,10 +169,9 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile
}
newImage := Image{
InputName: name,
InputName: imageName[0],
imageruntime: ir,
}
newImage.InputName = imageName[0]
img, err := newImage.getLocalImage()
if err != nil {
return nil, errors.Wrapf(err, "error retrieving local image after pulling %s", name)