Fixed golangci-lint issues: /fission/pkg (#1902)
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ func (timer *Timer) syncCron(triggers []fv1.TimeTrigger) error {
|
||||
|
||||
func (timer *Timer) newCron(t fv1.TimeTrigger) *cron.Cron {
|
||||
c := cron.New()
|
||||
c.AddFunc(t.Spec.Cron, func() {
|
||||
c.AddFunc(t.Spec.Cron, func() { //nolint: errCheck
|
||||
headers := map[string]string{
|
||||
"X-Fission-Timer-Name": t.ObjectMeta.Name,
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (ws *TimerSync) syncSvc() {
|
||||
}
|
||||
ws.logger.Fatal("failed to get time trigger list", zap.Error(err))
|
||||
}
|
||||
ws.timer.Sync(triggers.Items)
|
||||
ws.timer.Sync(triggers.Items) //nolint: errCheck
|
||||
|
||||
// TODO switch to watches
|
||||
time.Sleep(3 * time.Second)
|
||||
|
||||
Reference in New Issue
Block a user