diff options
author | silverwind <me@silverwind.io> | 2022-02-23 21:16:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 20:16:07 +0000 |
commit | 2b9df564b858a9216ffb7881278f485b35946349 (patch) | |
tree | 0aaa76a02b580c1eab1cbebf54befa6e8deb5375 /modules/notification/notification.go | |
parent | 2b5e0134307a45581860029de99449e8be8f807e (diff) | |
download | gitea-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 'modules/notification/notification.go')
-rw-r--r-- | modules/notification/notification.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go index a0acd01561..e8d5d07b34 100644 --- a/modules/notification/notification.go +++ b/modules/notification/notification.go @@ -39,7 +39,8 @@ func NewContext() { // NotifyCreateIssueComment notifies issue comment related message to notifiers func NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { for _, notifier := range notifiers { notifier.NotifyCreateIssueComment(doer, repo, issue, comment, mentions) } @@ -201,7 +202,8 @@ func NotifyIssueChangeRef(doer *user_model.User, issue *models.Issue, oldRef str // NotifyIssueChangeLabels notifies change labels to notifiers func NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, - addedLabels, removedLabels []*models.Label) { + addedLabels, removedLabels []*models.Label, +) { for _, notifier := range notifiers { notifier.NotifyIssueChangeLabels(doer, issue, addedLabels, removedLabels) } |