diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 06:37:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 12:37:47 +0100 |
commit | e2a3ebb271017d800a448ad3ef3e8324ac1fab3b (patch) | |
tree | ed802f97caaed335d925ea271b244fac029aed5c /app/helpers | |
parent | 9ab2a775c9a832fe6320f95e5b405feb93f9eaf3 (diff) |
Autofix Rubocop Style/IfUnlessModifier (#23697)
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b2687eddd..1f93b33f5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -216,9 +216,7 @@ module ApplicationHelper state_params[:moved_to_account] = current_account.moved_to_account end - if single_user_mode? - state_params[:owner] = Account.local.without_suspended.where('id > 0').first - end + state_params[:owner] = Account.local.without_suspended.where('id > 0').first if single_user_mode? json = ActiveModelSerializers::SerializableResource.new(InitialStatePresenter.new(state_params), serializer: InitialStateSerializer).to_json # rubocop:disable Rails/OutputSafety |