From c8506822085bae264baaa681f7cf23fcd4ccecfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 20 Nov 2023 16:57:17 +0100 Subject: [PATCH] Remove clearly dead code 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/storage.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libpod/storage.go b/libpod/storage.go index 52d5e1e8f7..e8bc8204bc 100644 --- a/libpod/storage.go +++ b/libpod/storage.go @@ -97,10 +97,7 @@ func (r *storageService) CreateContainerStorage(ctx context.Context, systemConte return ContainerInfo{}, err } - // Update the image name and ID. - if imageName == "" && len(img.Names) > 0 { - imageName = img.Names[0] - } + // Update the image ID. imageID = img.ID }