Skip to content

Commit

Permalink
Merge pull request #17790 from TomSweeneyRedHat/dev/tsweeney/pick17755
Browse files Browse the repository at this point in the history
[v4.4.1-rhel] Use append() to add elements to a slice (restore)
  • Loading branch information
openshift-merge-robot committed Mar 16, 2023
2 parents 5464dbc + 6b64861 commit ffc2614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/domain/infra/abi/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
}
ctrs = make([]*libpod.Container, 0, len(containers))
for i := range containers {
ctrs[i] = containers[i].Container
ctrs = append(ctrs, containers[i].Container)
}
default:
for _, nameOrID := range namesOrIds {
Expand Down

0 comments on commit ffc2614

Please sign in to comment.