1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#2966 code cleanup

This commit is contained in:
Unknwon
2016-08-26 13:40:53 -07:00
parent 8dca9f95fa
commit 6b98d58906
11 changed files with 145 additions and 134 deletions

View File

@@ -25,9 +25,9 @@ func ListIssues(ctx *context.APIContext) {
return
}
// FIXME: use IssueList to improve performance.
apiIssues := make([]*api.Issue, len(issues))
for i := range issues {
// FIXME: use IssueList to improve performance.
if err = issues[i].LoadAttributes(); err != nil {
ctx.Error(500, "LoadAttributes", err)
return