From aac446c5d6461b85530d6d69b455d306c165692c Mon Sep 17 00:00:00 2001 From: FMotalleb Date: Sun, 16 Jun 2024 14:39:00 +0330 Subject: [PATCH] minor --- config/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/validators.go b/config/validators.go index cc9ae74..13365bb 100644 --- a/config/validators.go +++ b/config/validators.go @@ -207,7 +207,7 @@ func (s *JobEvent) Validate(log *logrus.Entry) error { schedules := []bool{ s.Interval != 0, s.Cron != "", - s.OnInit == true, + s.OnInit, } activeSchedules := 0 for _, t := range schedules {