update for CodeQL
This commit is contained in:
parent
93e1d58bcb
commit
0aaf642f69
@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/jinzhu/copier"
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
"github.com/robfig/cron/v3"
|
||||
@ -93,7 +92,6 @@ func CronTrigger(cr model.Cron, triggerServer ...uint64) func() {
|
||||
return func() {
|
||||
if cr.Cover == model.CronCoverSelf {
|
||||
if len(triggerServer) == 0 {
|
||||
log.Println("触发任务", cr.Name, "未指定触发服务器")
|
||||
return
|
||||
}
|
||||
ServerLock.RLock()
|
||||
|
Loading…
Reference in New Issue
Block a user