From 9765b6d50ed4d3b9756be0365e00e0c2bb3317d4 Mon Sep 17 00:00:00 2001 From: huochexizhan Date: Wed, 2 Oct 2024 14:23:10 +0800 Subject: [PATCH] fix: fix slice init length (#5327) --- pkg/models/model_joins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/model_joins.go b/pkg/models/model_joins.go index 7b7cae3e4..c6cc8c2b2 100644 --- a/pkg/models/model_joins.go +++ b/pkg/models/model_joins.go @@ -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()) }