From a433b858d275557e1469fdcd917f1ef2a93011cd Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Fri, 7 Feb 2020 01:52:04 +0100 Subject: Trivial simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should not change behavior. Signed-off-by: Miloslav Trmač --- libpod/image/image.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpod/image') diff --git a/libpod/image/image.go b/libpod/image/image.go index 28148b7c3..432b8b848 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -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) -- cgit v1.2.3-54-g00ecf