mirror of https://github.com/stashapp/stash.git
fix: fix slice init length (#5327)
This commit is contained in:
parent
c6c3754f02
commit
9765b6d50e
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue