diff options
author | Jonas Östanbäck <cez81@users.noreply.github.com> | 2017-09-12 03:04:14 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-12 09:04:14 +0800 |
commit | eab4579e176c7b5bfdae6788c38cfba5a90712c6 (patch) | |
tree | 98d181f55f34b4d3a97eddda3f25dff52469175d /modules/mailer | |
parent | 01d7189c2da827e2a7c793cffdc9166c35bc0507 (diff) | |
download | gitea-eab4579e176c7b5bfdae6788c38cfba5a90712c6.tar.gz gitea-eab4579e176c7b5bfdae6788c38cfba5a90712c6.zip |
Fix fmt error in mailer (#2490)
Diffstat (limited to 'modules/mailer')
-rw-r--r-- | modules/mailer/mailer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index b941ccc31f..5b28f92c47 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -42,7 +42,7 @@ func NewMessageFrom(to []string, from, subject, body string) *Message { plainBody, err := html2text.FromString(body) if err != nil || setting.MailService.SendAsPlainText { - if strings.Contains(base.TruncateString(body, 100), "<html>"){ + if strings.Contains(base.TruncateString(body, 100), "<html>") { log.Warn("Mail contains HTML but configured to send as plain text.") } msg.SetBody("text/plain", plainBody) |