Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
parent
9ab2a775c9
commit
e2a3ebb271
40 changed files with 55 additions and 271 deletions
|
@ -313,9 +313,7 @@ class Account < ApplicationRecord
|
|||
|
||||
previous = old_fields.find { |item| item['value'] == attr[:value] }
|
||||
|
||||
if previous && previous['verified_at'].present?
|
||||
attr[:verified_at] = previous['verified_at']
|
||||
end
|
||||
attr[:verified_at] = previous['verified_at'] if previous && previous['verified_at'].present?
|
||||
|
||||
fields << attr
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue