mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-15 04:13:35 +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
|
||||
|
||||
import (
|
||||
@ -36,7 +39,7 @@ func TestMailNewIssueAndPullRequest(t *testing.T) {
|
||||
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1})
|
||||
watcher := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
|
||||
|
||||
var didSend = false
|
||||
didSend := false
|
||||
origSend := SendAsync
|
||||
SendAsync = func(msgs ...*sender_service.Message) {
|
||||
for _, msg := range msgs {
|
||||
|
||||
@ -90,7 +90,7 @@ func TestMailNewReleaseWithWatchOptions(t *testing.T) {
|
||||
Releases: false,
|
||||
}))
|
||||
|
||||
var didSend = false
|
||||
didSend := false
|
||||
origSend := SendAsync
|
||||
SendAsync = func(msgs ...*sender_service.Message) {
|
||||
didSend = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user