refactoring nits (#18188)

* no octal for time values

* rm artifact from refactoring

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
6543andLunny Xiao authored and GitHub committed 2022-01-05 07:27:53 +01:00
1 parent 6da078d616
commit 0572c78938
5 files changed
+22 -21

No files matched your search

+2 -2
View File
@@ -14,14 +14,14 @@ import (
)
func TestGenerateMessageID(t *testing.T) {
var mailService = setting.Mailer{
mailService := setting.Mailer{
From: "test@gitea.com",
}
setting.MailService = &mailService
setting.Domain = "localhost"
date := time.Date(2000, 01, 02, 03, 04, 05, 06, time.UTC)
date := time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)
m := NewMessageFrom(nil, "display-name", "from-address", "subject", "body")
m.Date = date
gm := m.ToMessage()