diff options
-rw-r--r-- | lib/gitlab/ci/cron_parser.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/gitlab/ci/cron_parser.rb b/lib/gitlab/ci/cron_parser.rb index 521e556f769..69dd8ad0fce 100644 --- a/lib/gitlab/ci/cron_parser.rb +++ b/lib/gitlab/ci/cron_parser.rb @@ -25,11 +25,9 @@ module Gitlab private def try_parse_cron(cron, cron_time_zone) - begin - Rufus::Scheduler.parse("#{cron} #{cron_time_zone}") - rescue - nil - end + Rufus::Scheduler.parse("#{cron} #{cron_time_zone}") + rescue + # noop end end end |