summaryrefslogtreecommitdiffstats
path: root/services/mailer
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-01-05 07:27:53 +0100
committerGitHub <noreply@github.com>2022-01-05 07:27:53 +0100
commit0572c78938d3d8287f81f53effc7ffaacd75d3e7 (patch)
tree7dc1e9d29732332490d5a81c16c5e60cc90616a9 /services/mailer
parent6da078d61690816643f082b2230c0842660bbf4c (diff)
downloadgitea-0572c78938d3d8287f81f53effc7ffaacd75d3e7.tar.gz
gitea-0572c78938d3d8287f81f53effc7ffaacd75d3e7.zip
refactoring nits (#18188)
* no octal for time values * rm artifact from refactoring Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services/mailer')
-rw-r--r--services/mailer/mailer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go
index 56f2eb52b0..b94fce8443 100644
--- a/services/mailer/mailer_test.go
+++ b/services/mailer/mailer_test.go
@@ -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()