Skip to content

Commit

Permalink
fix: fix slice init length (#5327)
Browse files Browse the repository at this point in the history
  • Loading branch information
huochexizhan authored Oct 2, 2024
1 parent c6c3754 commit 9765b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/model_joins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 9765b6d

Please sign in to comment.