From 85335c5f5623d3a8d238fcc21ab6a366096434bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Wed, 27 Jan 2016 20:11:07 +0100 Subject: [PATCH] Go-ism :D --- routers/repo/issue.go | 6 +++--- 1 file 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) } }