diff options
Diffstat (limited to 'services/cron/tasks.go')
-rw-r--r-- | services/cron/tasks.go | 10 |
1 files changed, 6 insertions, 4 deletions
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 { |