diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-01 17:57:52 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-06 23:46:58 +0900 |
commit | 934e949726adf4428a03970d78e23555cc1d7a72 (patch) | |
tree | da26a02cf4f27563633c31ebe07a6e9e33f693ef /app/validators/cron_validator.rb | |
parent | 62480461c943b4ca4c72830c04932cd5bba9f4e7 (diff) | |
download | gitlab-ce-934e949726adf4428a03970d78e23555cc1d7a72.tar.gz |
Fix rubocop issues. Use add_concurrent_foreign_key.
Diffstat (limited to 'app/validators/cron_validator.rb')
-rw-r--r-- | app/validators/cron_validator.rb | 1 |
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") |