fix: fix slice init length (#5327)

This commit is contained in:
huochexizhan 2024-10-02 14:23:10 +08:00 committed by GitHub
parent c6c3754f02
commit 9765b6d50e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func (u *UpdateGroupIDs) SceneMovieInputs() []SceneMovieInput {
return nil
}
ret := make([]SceneMovieInput, len(u.Groups))
ret := make([]SceneMovieInput, 0, len(u.Groups))
for _, id := range u.Groups {
ret = append(ret, id.SceneMovieInput())
}