Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-04 15:18:51 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 17:46:59 +0300
commit0c153af73df3d5b10915cf9d32af728f9b6e8e98 (patch)
tree54e08b85f91db41452236629b8b8a5326c37ab8d /lib/gitlab
parent4949e2b291bc59ee3855882a29df3bff9edfd4e5 (diff)
Ommit begin block in try_parse_cron
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/ci/cron_parser.rb8
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