diff --git a/internal/restorable/images.go b/internal/restorable/images.go index 90b856023..8c7f45ced 100644 --- a/internal/restorable/images.go +++ b/internal/restorable/images.go @@ -242,9 +242,7 @@ func (i *images) restore(graphicsDriver graphicsdriver.Graphics) error { current[i] = struct{}{} } for e := range edges { - if _, ok := current[e.target]; ok { - delete(current, e.target) - } + delete(current, e.target) } for i := range current { delete(images, i)