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