Ommit begin block in try_parse_cron

This commit is contained in:
Shinya Maeda 2017-04-04 21:18:51 +09:00
parent 4949e2b291
commit 0c153af73d

View file

@ -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