summaryrefslogtreecommitdiff
path: root/app/validators
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-01 17:57:52 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 23:46:58 +0900
commit934e949726adf4428a03970d78e23555cc1d7a72 (patch)
treeda26a02cf4f27563633c31ebe07a6e9e33f693ef /app/validators
parent62480461c943b4ca4c72830c04932cd5bba9f4e7 (diff)
downloadgitlab-ce-934e949726adf4428a03970d78e23555cc1d7a72.tar.gz
Fix rubocop issues. Use add_concurrent_foreign_key.
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/cron_validator.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/validators/cron_validator.rb b/app/validators/cron_validator.rb
index ad70e0897ba..4d9a0d62a4c 100644
--- a/app/validators/cron_validator.rb
+++ b/app/validators/cron_validator.rb
@@ -5,7 +5,6 @@ class CronValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
cron_parser = Ci::CronParser.new(record.cron, record.cron_time_zone)
is_valid_cron, is_valid_cron_time_zone = cron_parser.validation
- next_time = cron_parser.next_time_from(Time.now)
if !is_valid_cron
record.errors.add(:cron, " is invalid syntax")