mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Fix some slice problems (incorrect slice length) (#19592)
This commit is contained in:
parent
c8ec2261a9
commit
772ad761eb
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue