Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Oct 30, 2024
1 parent ad68a00 commit 8f66bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ def configure_permitted_parameters
end

def detect_region
@region = Region.find_by_name(params[:region].downcase) if params[:region] && (params[:region].is_a? String)
@region = Region.find_by_name(params[:region].downcase) if params[:region]&.is_a? String
end
end

0 comments on commit 8f66bcc

Please sign in to comment.