Rubocop: enable Layout/SpaceAroundOperators

This commit is contained in:
Simon Lehericey 2017-08-28 10:56:37 +02:00
parent 740cc7dc3f
commit a7b00ee847
14 changed files with 27 additions and 27 deletions

View file

@ -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