0
0
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:
Alexandre Bontems 2026-05-04 18:49:09 +02:00
parent 1552255e02
commit e71fc6ca63
No known key found for this signature in database
GPG Key ID: 37B7C811C1723B5E
2 changed files with 5 additions and 2 deletions

View File

@ -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 {

View File

@ -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