fix Dependabot alerts

This commit is contained in:
MengMengCode
2026-07-16 21:01:27 +08:00
parent ae02241370
commit 2ecdb5c26f
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ func subUserAssignedContainers(su *config.SubUser) []*config.Container {
if su == nil {
return nil
}
result := make([]*config.Container, 0, len(su.ContainerUUIDs)+len(su.ContainerNames))
result := []*config.Container{}
seen := map[string]bool{}
for _, uuid := range su.ContainerUUIDs {
if c := config.FindContainerByUUID(uuid); c != nil {