Skip to content

Commit 9bb54b2

Browse files
committed
improve the performance
1 parent 3b92f9b commit 9bb54b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/home.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ func loadRepoByIDs(ctxUser *user_model.User, issueCountByRepo map[int64]int64, u
704704
if err := repo_model.FindReposMapByIDs(repoIDs, totalRes); err != nil {
705705
return nil, err
706706
}
707-
repoIDs = make([]int64, 0, 500)
707+
repoIDs = repoIDs[:0]
708708
}
709709
}
710710
if len(repoIDs) > 0 {

0 commit comments

Comments
 (0)