Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
parent
9ab2a775c9
commit
e2a3ebb271
40 changed files with 55 additions and 271 deletions
|
@ -61,9 +61,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
store[:disabled_account_id] = object.disabled_account.id.to_s if object.disabled_account
|
||||
store[:moved_to_account_id] = object.moved_to_account.id.to_s if object.moved_to_account
|
||||
|
||||
if Rails.configuration.x.single_user_mode
|
||||
store[:owner] = object.owner&.id&.to_s
|
||||
end
|
||||
store[:owner] = object.owner&.id&.to_s if Rails.configuration.x.single_user_mode
|
||||
|
||||
store
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue