From 375ece06d237d09daf004c6c1dc37df2854ce987 Mon Sep 17 00:00:00 2001 From: Norwin Date: Tue, 5 Oct 2021 01:43:06 +0800 Subject: [PATCH] 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 Reviewed-on: https://gitea.com/gitea/tea/pulls/425 Co-authored-by: Norwin Co-committed-by: Norwin --- modules/print/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/print/issue.go b/modules/print/issue.go index 8587f82..b78e7be 100644 --- a/modules/print/issue.go +++ b/modules/print/issue.go @@ -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))