update for CodeQL

This commit is contained in:
Akkia 2022-09-14 11:37:00 +08:00
parent 93e1d58bcb
commit 0aaf642f69
No known key found for this signature in database
GPG Key ID: DABE9A4AB2DD7EF3

View File

@ -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()