Cleanup Lint/AssignmentInCondition rubocop issues on code and remove it from ruboco_todo list
This commit is contained in:
@@ -37,9 +37,8 @@ class Management::SessionsController < ActionController::Base
|
||||
end
|
||||
|
||||
def authenticated_manager?
|
||||
if manager = ManagerAuthenticator.new(params).auth
|
||||
session[:manager] = manager
|
||||
end
|
||||
manager = ManagerAuthenticator.new(params).auth
|
||||
session[:manager] = manager if manager.present?
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user