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 {