mirror of
https://github.com/containers/podman.git
synced 2025-05-28 21:46:51 +08:00
Fix in-memory state tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #229 Approved by: rhatdan
This commit is contained in:
@ -336,7 +336,11 @@ func (c *Container) Dependencies() []string {
|
||||
dependsCtrs[c.config.CgroupNsCtr] = true
|
||||
}
|
||||
|
||||
depends := make([]string, len(dependsCtrs), 0)
|
||||
if len(dependsCtrs) == 0 {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
depends := make([]string, 0, len(dependsCtrs))
|
||||
for ctr, _ := range dependsCtrs {
|
||||
depends = append(depends, ctr)
|
||||
}
|
||||
|
Reference in New Issue
Block a user