Ommit begin block in try_parse_cron
This commit is contained in:
parent
4949e2b291
commit
0c153af73d
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue