Remove unnecessary if in ExtendedDeterministicUniquenessValidator

This commit is contained in:
Eugene Kenny 2021-10-03 21:52:16 +01:00
parent 1e250e6ee2
commit 7600f6af1d
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module ActiveRecord
super(record, attribute, value)
klass = record.class
if klass.deterministic_encrypted_attributes&.each do |attribute_name|
klass.deterministic_encrypted_attributes&.each do |attribute_name|
encrypted_type = klass.type_for_attribute(attribute_name)
[ encrypted_type, *encrypted_type.previous_types ].each do |type|
encrypted_value = type.serialize(value)
@ -21,7 +21,6 @@ module ActiveRecord
end
end
end
end
end
end
end