fix lint regression (#425)

On PR #421 CI did not work and it was force merged. Thus we managed to have failing CI on master.. :( sorry

Co-authored-by: Norwin <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/425
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
Norwin 2021-10-05 01:43:06 +08:00 committed by techknowlogick
parent 4ffd994549
commit 375ece06d2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func IssueDetails(issue *gitea.Issue, reactions []*gitea.Reaction) {
func formatReactions(reactions []*gitea.Reaction) string {
reactionCounts := make(map[string]uint16)
for _, r := range reactions {
reactionCounts[r.Reaction] += 1
reactionCounts[r.Reaction]++
}
reactionStrings := make([]string, 0, len(reactionCounts))