Commit 0c153af7 authored by Shinya Maeda's avatar Shinya Maeda

Ommit begin block in try_parse_cron

parent 4949e2b2
...@@ -25,11 +25,9 @@ module Gitlab ...@@ -25,11 +25,9 @@ module Gitlab
private private
def try_parse_cron(cron, cron_time_zone) def try_parse_cron(cron, cron_time_zone)
begin
Rufus::Scheduler.parse("#{cron} #{cron_time_zone}") Rufus::Scheduler.parse("#{cron} #{cron_time_zone}")
rescue rescue
nil # noop
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment