Skip to content

Commit

Permalink
Silence Style/SafeNavigationChainLength cop
Browse files Browse the repository at this point in the history
I like the simplicity of this line.
  • Loading branch information
dentarg committed Nov 18, 2024
1 parent 3059727 commit 4dfd160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rack-protection/lib/rack/protection/host_authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def accepts?(env)
private

def extract_host(authority)
authority&.split(PORT_REGEXP)&.first&.downcase
authority&.split(PORT_REGEXP)&.first&.downcase # rubocop:disable Style/SafeNavigationChainLength
end

def host_permitted?(host)
Expand Down

0 comments on commit 4dfd160

Please sign in to comment.