mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-15 06:23:01 +02:00
chore: format
This commit is contained in:
parent
1552255e02
commit
e71fc6ca63
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
package mailer
|
package mailer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -36,7 +39,7 @@ func TestMailNewIssueAndPullRequest(t *testing.T) {
|
|||||||
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1})
|
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1})
|
||||||
watcher := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
|
watcher := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
|
||||||
|
|
||||||
var didSend = false
|
didSend := false
|
||||||
origSend := SendAsync
|
origSend := SendAsync
|
||||||
SendAsync = func(msgs ...*sender_service.Message) {
|
SendAsync = func(msgs ...*sender_service.Message) {
|
||||||
for _, msg := range msgs {
|
for _, msg := range msgs {
|
||||||
|
|||||||
@ -90,7 +90,7 @@ func TestMailNewReleaseWithWatchOptions(t *testing.T) {
|
|||||||
Releases: false,
|
Releases: false,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
var didSend = false
|
didSend := false
|
||||||
origSend := SendAsync
|
origSend := SendAsync
|
||||||
SendAsync = func(msgs ...*sender_service.Message) {
|
SendAsync = func(msgs ...*sender_service.Message) {
|
||||||
didSend = true
|
didSend = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user