Browse Source

Go-ism :D

tags/v1.2.0-rc1
Kim "BKC" Carlbäcker 9 years ago
parent
commit
cde4e4a1b4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      routers/repo/issue.go

+ 3
- 3
routers/repo/issue.go View File

@@ -620,14 +620,14 @@ func ViewIssue(ctx *middleware.Context) {


marked[comment.PosterID] = comment.ShowTag marked[comment.PosterID] = comment.ShowTag


already_added := false
isAdded := false
for j := range participants { for j := range participants {
if comment.Poster == participants[j] { if comment.Poster == participants[j] {
already_added = true
isAdded = true
break break
} }
} }
if !already_added && !issue.IsPoster(comment.Poster.Id) {
if !isAdded && !issue.IsPoster(comment.Poster.Id) {
participants = append(participants, comment.Poster) participants = append(participants, comment.Poster)
} }
} }


Loading…
Cancel
Save