Skip to content

Commit eab4579

Browse files
cez81lunny
authored andcommitted
Fix fmt error in mailer (#2490)
1 parent 01d7189 commit eab4579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mailer/mailer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewMessageFrom(to []string, from, subject, body string) *Message {
4242

4343
plainBody, err := html2text.FromString(body)
4444
if err != nil || setting.MailService.SendAsPlainText {
45-
if strings.Contains(base.TruncateString(body, 100), "<html>"){
45+
if strings.Contains(base.TruncateString(body, 100), "<html>") {
4646
log.Warn("Mail contains HTML but configured to send as plain text.")
4747
}
4848
msg.SetBody("text/plain", plainBody)

0 commit comments

Comments
 (0)