diff options
author | Kim Carlbäcker <kim.carlbacker@gmail.com> | 2016-01-20 16:16:39 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-01-26 17:55:54 +0100 |
commit | f65dedc3becf902271db1d55b6951a40c9602140 (patch) | |
tree | 5c5c57d564adac3bb6a90e07e34a01f261233209 | |
parent | b921161666e5abbe3b24e8f68b8e9233aaaa5826 (diff) | |
download | gitea-f65dedc3becf902271db1d55b6951a40c9602140.tar.gz gitea-f65dedc3becf902271db1d55b6951a40c9602140.zip |
Optimize participant-fetching
-rw-r--r-- | routers/repo/issue.go | 1 |
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 { |