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

Remove redudant issue LoadAttributes() calls (#2614)

This commit is contained in:
Morlinest
2017-09-27 14:41:52 +02:00
committed by Andrey Nering
parent 339d7de409
commit cc84ca40d7
2 changed files with 1 additions and 12 deletions

View File

@@ -39,12 +39,6 @@ func ListIssues(ctx *context.APIContext) {
return
}
err = models.IssueList(issues).LoadAttributes()
if err != nil {
ctx.Error(500, "LoadAttributes", err)
return
}
apiIssues := make([]*api.Issue, len(issues))
for i := range issues {
apiIssues[i] = issues[i].APIFormat()