Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
@@ -110,9 +110,7 @@ class Auth::SessionsController < Devise::SessionsController
|
||||
def home_paths(resource)
|
||||
paths = [about_path]
|
||||
|
||||
if single_user_mode? && resource.is_a?(User)
|
||||
paths << short_account_path(username: resource.account)
|
||||
end
|
||||
paths << short_account_path(username: resource.account) if single_user_mode? && resource.is_a?(User)
|
||||
|
||||
paths
|
||||
end
|
||||
|
Reference in New Issue
Block a user