summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-02-23 21:16:07 +0100
committerGitHub <noreply@github.com>2022-02-23 20:16:07 +0000
commit2b9df564b858a9216ffb7881278f485b35946349 (patch)
tree0aaa76a02b580c1eab1cbebf54befa6e8deb5375 /services
parent2b5e0134307a45581860029de99449e8be8f807e (diff)
downloadgitea-2b9df564b858a9216ffb7881278f485b35946349.tar.gz
gitea-2b9df564b858a9216ffb7881278f485b35946349.zip
Lock gofumpt to v0.3.0 and run it (#18866)
We can't depend on `latest` version of gofumpt because the output will not be stable across versions. Lock it down to the latest version released yesterday and run it again.
Diffstat (limited to 'services')
-rw-r--r--services/mailer/mail.go3
-rw-r--r--services/release/release.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go
index d5f3f2ac03..3983237fc5 100644
--- a/services/mailer/mail.go
+++ b/services/mailer/mail.go
@@ -427,7 +427,8 @@ func SendIssueAssignedMail(issue *models.Issue, doer *user_model.User, content s
// actionToTemplate returns the type and name of the action facing the user
// (slightly different from models.ActionType) and the name of the template to use (based on availability)
func actionToTemplate(issue *models.Issue, actionType models.ActionType,
- commentType models.CommentType, reviewType models.ReviewType) (typeName, name, template string) {
+ commentType models.CommentType, reviewType models.ReviewType,
+) (typeName, name, template string) {
if issue.IsPull {
typeName = "pull"
} else {
diff --git a/services/release/release.go b/services/release/release.go
index 9e3ea3370a..0df8635230 100644
--- a/services/release/release.go
+++ b/services/release/release.go
@@ -186,7 +186,8 @@ func CreateNewTag(ctx context.Context, doer *user_model.User, repo *repo_model.R
// delAttachmentUUIDs accept a slice of attachments' uuids which will be deleted from the release
// editAttachments accept a map of attachment uuid to new attachment name which will be updated with attachments.
func UpdateRelease(doer *user_model.User, gitRepo *git.Repository, rel *models.Release,
- addAttachmentUUIDs, delAttachmentUUIDs []string, editAttachments map[string]string) (err error) {
+ addAttachmentUUIDs, delAttachmentUUIDs []string, editAttachments map[string]string,
+) (err error) {
if rel.ID == 0 {
return errors.New("UpdateRelease only accepts an exist release")
}