mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user