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
|
||||
|
|
|
@ -95,9 +95,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def registrations_message
|
||||
if Setting.closed_registrations_message.present?
|
||||
markdown.render(Setting.closed_registrations_message)
|
||||
end
|
||||
markdown.render(Setting.closed_registrations_message) if Setting.closed_registrations_message.present?
|
||||
end
|
||||
|
||||
def markdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue