diff options
author | 6543 <6543@obermui.de> | 2022-01-20 18:46:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 18:46:10 +0100 |
commit | 54e9ee37a7a301dbe74d46fd3c87712e6120e9bf (patch) | |
tree | 1be12fb072625c1b896b9d72f7912b018aad502b /services/cron | |
parent | 1d98d205f5825f40110e6628b61a97c91ac7f72d (diff) | |
download | gitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.tar.gz gitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.zip |
format with gofumpt (#18184)
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
Diffstat (limited to 'services/cron')
-rw-r--r-- | services/cron/cron.go | 1 | ||||
-rw-r--r-- | services/cron/tasks.go | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/services/cron/cron.go b/services/cron/cron.go index ae309bd866..19f703caf1 100644 --- a/services/cron/cron.go +++ b/services/cron/cron.go @@ -43,7 +43,6 @@ func NewContext() { started = false lock.Unlock() }) - } // TaskTableRow represents a task row in the tasks table diff --git a/services/cron/tasks.go b/services/cron/tasks.go index 29062233c8..07da2fe8d6 100644 --- a/services/cron/tasks.go +++ b/services/cron/tasks.go @@ -19,10 +19,12 @@ import ( "code.gitea.io/gitea/modules/setting" ) -var lock = sync.Mutex{} -var started = false -var tasks = []*Task{} -var tasksMap = map[string]*Task{} +var ( + lock = sync.Mutex{} + started = false + tasks = []*Task{} + tasksMap = map[string]*Task{} +) // Task represents a Cron task type Task struct { |