Skip to content

Commit

Permalink
review suggestion from warpfork
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Dec 14, 2023
1 parent 34e25b0 commit 0d4a31f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions automod/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ func (e *RepoEvent) AddAccountFlag(val string) {
// Enqueues a moderation report to be filed against the account at the end of rule processing.
func (e *RepoEvent) ReportAccount(reason, comment string) {
if comment == "" {
comment = "(automod)"
} else {
comment = "automod: " + comment
comment = "(no comment)"
}
comment = "automod: " + comment
e.AccountReports = append(e.AccountReports, ModReport{ReasonType: reason, Comment: comment})
}

Expand Down

0 comments on commit 0d4a31f

Please sign in to comment.