summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Carlbäcker <kim.carlbacker@gmail.com>2016-01-20 16:16:39 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-26 17:55:54 +0100
commitf65dedc3becf902271db1d55b6951a40c9602140 (patch)
tree5c5c57d564adac3bb6a90e07e34a01f261233209
parentb921161666e5abbe3b24e8f68b8e9233aaaa5826 (diff)
downloadgitea-f65dedc3becf902271db1d55b6951a40c9602140.tar.gz
gitea-f65dedc3becf902271db1d55b6951a40c9602140.zip
Optimize participant-fetching
-rw-r--r--routers/repo/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index db55033f8a..88628eab90 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -623,6 +623,7 @@ func ViewIssue(ctx *middleware.Context) {
for j := range participants {
if comment.Poster == participants[j] {
already_added = true
+ break
}
}
if !already_added {