mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Fix rubocop issues that are new to Ruby 2.4
This commit is contained in:
parent
82dbd3e8b8
commit
cf16aa4039
4 changed files with 12 additions and 7 deletions
|
@ -10,9 +10,8 @@ class Contact::Ident::RegNoValidator < ActiveModel::EachValidator
|
|||
|
||||
return unless format
|
||||
|
||||
unless value.match?(format)
|
||||
record.errors.add(attribute, :invalid_reg_no, country: record.country)
|
||||
end
|
||||
return if value.match?(format)
|
||||
record.errors.add(attribute, :invalid_reg_no, country: record.country)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue