Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user