diff options
author | Unknwon <u@gogs.io> | 2016-08-26 13:40:53 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-26 13:40:53 -0700 |
commit | 6b98d58906e4df063a2af59f97bd74c1c4cc1c84 (patch) | |
tree | 55ee0ed0cf2ce7984f3e724ba6a8675ece4771c1 /routers/api/v1/repo/issue.go | |
parent | 8dca9f95fab909c52cd34fb401f171d22f0065ae (diff) | |
download | gitea-6b98d58906e4df063a2af59f97bd74c1c4cc1c84.tar.gz gitea-6b98d58906e4df063a2af59f97bd74c1c4cc1c84.zip |
#2966 code cleanup
Diffstat (limited to 'routers/api/v1/repo/issue.go')
-rw-r--r-- | routers/api/v1/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index b83f7e66b9..fe967ae0a5 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -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 |