aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_indexer.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-20 21:28:22 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-21 13:28:22 +0800
commit0f6dc411dfc2bf85511b533c4055aa0c95bf54b1 (patch)
treefa48728cbfb4d6e04e8256fcde12dcd92e9d8548 /models/issue_indexer.go
parent10b54df2b2efa539fbaa0bf624e81cb5da99f97a (diff)
downloadgitea-0f6dc411dfc2bf85511b533c4055aa0c95bf54b1.tar.gz
gitea-0f6dc411dfc2bf85511b533c4055aa0c95bf54b1.zip
Remove unnecessary IssueList attribute loads (#2936)
Diffstat (limited to 'models/issue_indexer.go')
-rw-r--r--models/issue_indexer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/issue_indexer.go b/models/issue_indexer.go
index e43dfc9fae..c50b733492 100644
--- a/models/issue_indexer.go
+++ b/models/issue_indexer.go
@@ -49,6 +49,9 @@ func populateIssueIndexer() error {
if err != nil {
return err
}
+ if err = IssueList(issues).LoadComments(); err != nil {
+ return err
+ }
for _, issue := range issues {
if err := batch.Add(issue.update()); err != nil {
return err