diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-09-27 14:41:52 +0200 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2017-09-27 09:41:52 -0300 |
commit | cc84ca40d787d853186af6c16d328daa37d543da (patch) | |
tree | 92b77e428421f2c2ba734fca2efc201db1899e10 /routers | |
parent | 339d7de409fae0502f970e1ddd73c2a046236407 (diff) | |
download | gitea-cc84ca40d787d853186af6c16d328daa37d543da.tar.gz gitea-cc84ca40d787d853186af6c16d328daa37d543da.zip |
Remove redudant issue LoadAttributes() calls (#2614)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 9f51022f35..2debe67c3b 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -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() |