Rubocop: enable Layout/SpaceAroundOperators
This commit is contained in:
parent
740cc7dc3f
commit
a7b00ee847
14 changed files with 27 additions and 27 deletions
|
@ -3,7 +3,7 @@ class SiretFormatValidator < ActiveModel::EachValidator
|
|||
unless value =~ /^\d{14}$/
|
||||
record.errors.add(attribute, :format)
|
||||
end
|
||||
unless value!= nil && (luhn_checksum(value) % 10 == 0)
|
||||
unless value != nil && (luhn_checksum(value) % 10 == 0)
|
||||
record.errors.add(attribute, :checksum)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue