summaryrefslogtreecommitdiffstats
path: root/services/cron
diff options
context:
space:
mode:
Diffstat (limited to 'services/cron')
-rw-r--r--services/cron/cron.go1
-rw-r--r--services/cron/tasks.go10
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 {