diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-04 15:18:51 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-06 17:46:59 +0300 |
commit | 0c153af73df3d5b10915cf9d32af728f9b6e8e98 (patch) | |
tree | 54e08b85f91db41452236629b8b8a5326c37ab8d /lib/gitlab/ci | |
parent | 4949e2b291bc59ee3855882a29df3bff9edfd4e5 (diff) |
Ommit begin block in try_parse_cron
Diffstat (limited to 'lib/gitlab/ci')
-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 |