Skip to content

Commit d5a2cd1

Browse files
committed
Fix unused variable
1 parent 8213ee7 commit d5a2cd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/mailer/mail_issue.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,12 @@ func mailIssueCommentToParticipants(issue *models.Issue, doer *models.User, acti
8787
return err
8888
}
8989

90-
tos := make([]string, 0, len(recipients)) // List of email addresses.
9190
for _, to := range recipients {
9291
SendIssueCommentMail(issue, doer, actionType, content, comment, []string{to.Email})
9392
}
9493

9594
// Mail mentioned people and exclude previous recipients
96-
tos = make([]string, 0, len(mentions)) // mentions come as a list of user names
95+
tos := make([]string, 0, len(mentions)) // mentions come as a list of user names
9796
for _, mention := range mentions {
9897
if _, ok := visited[mention]; !ok {
9998
visited[mention] = true

0 commit comments

Comments
 (0)