mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Fix some slice problems (incorrect slice length) (#19592)
This commit is contained in:
@@ -127,7 +127,7 @@ func GetActivityStatsTopAuthors(ctx context.Context, repo *repo_model.Repository
|
||||
user.Commits += v.Commits
|
||||
}
|
||||
}
|
||||
v := make([]*ActivityAuthorData, 0)
|
||||
v := make([]*ActivityAuthorData, 0, len(users))
|
||||
for _, u := range users {
|
||||
v = append(v, u)
|
||||
}
|
||||
|
Reference in New Issue
Block a user