Browse Source

Fix fmt error in mailer (#2490)

Jonas Östanbäck 2 years ago
parent
commit
eab4579e17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mailer/mailer.go

+ 1 - 1
modules/mailer/mailer.go

@@ -42,7 +42,7 @@ func NewMessageFrom(to []string, from, subject, body string) *Message {
42 42
 
43 43
 	plainBody, err := html2text.FromString(body)
44 44
 	if err != nil || setting.MailService.SendAsPlainText {
45
-		if strings.Contains(base.TruncateString(body, 100), "<html>"){
45
+		if strings.Contains(base.TruncateString(body, 100), "<html>") {
46 46
 			log.Warn("Mail contains HTML but configured to send as plain text.")
47 47
 		}
48 48
 		msg.SetBody("text/plain", plainBody)