Skip to content

Commit ffc2614

Browse files
Merge pull request #17790 from TomSweeneyRedHat/dev/tsweeney/pick17755
[v4.4.1-rhel] Use append() to add elements to a slice (restore)
2 parents 5464dbc + 6b64861 commit ffc2614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/domain/infra/abi/containers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
673673
}
674674
ctrs = make([]*libpod.Container, 0, len(containers))
675675
for i := range containers {
676-
ctrs[i] = containers[i].Container
676+
ctrs = append(ctrs, containers[i].Container)
677677
}
678678
default:
679679
for _, nameOrID := range namesOrIds {

0 commit comments

Comments
 (0)