Remove clearly dead code

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-11-20 16:57:17 +01:00
parent d3096f6cd3
commit c850682208

View File

@ -97,10 +97,7 @@ func (r *storageService) CreateContainerStorage(ctx context.Context, systemConte
return ContainerInfo{}, err return ContainerInfo{}, err
} }
// Update the image name and ID. // Update the image ID.
if imageName == "" && len(img.Names) > 0 {
imageName = img.Names[0]
}
imageID = img.ID imageID = img.ID
} }