diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-01-27 20:11:07 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-01-27 20:11:07 +0100 |
commit | 85335c5f5623d3a8d238fcc21ab6a366096434bd (patch) | |
tree | ebe9e164b91d0e378ff7f180326fbed6361e6a36 /routers/repo/issue.go | |
parent | b31c7fe074dae7e51a4b2cd6aa1a9d6f2318b767 (diff) | |
download | gitea-85335c5f5623d3a8d238fcc21ab6a366096434bd.tar.gz gitea-85335c5f5623d3a8d238fcc21ab6a366096434bd.zip |
Go-ism :D
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 9a6c370137..b4deeadbc8 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -620,14 +620,14 @@ func ViewIssue(ctx *middleware.Context) { marked[comment.PosterID] = comment.ShowTag - already_added := false + isAdded := false for j := range participants { if comment.Poster == participants[j] { - already_added = true + isAdded = true break } } - if !already_added && !issue.IsPoster(comment.Poster.Id) { + if !isAdded && !issue.IsPoster(comment.Poster.Id) { participants = append(participants, comment.Poster) } } |