0
0
Fork 0

Fix Style/StringLiterals cop (#30005)

This commit is contained in:
Matt Jankowski 2024-04-19 16:33:00 -04:00 committed by GitHub
parent 8d47ba893a
commit 933189887b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 20 deletions

View file

@ -7,7 +7,7 @@ Rails.application.configure do
proxy = URI.parse(ENV['http_proxy'])
raise "Unsupported proxy type: #{proxy.scheme}" unless %w(http https).include? proxy.scheme
raise "No proxy host" unless proxy.host
raise 'No proxy host' unless proxy.host
host = proxy.host
host = host[1...-1] if host[0] == '[' # for IPv6 address
@ -24,7 +24,7 @@ Rails.application.configure do
proxy = URI.parse(ENV['http_hidden_proxy'])
raise "Unsupported proxy type: #{proxy.scheme}" unless %w(http https).include? proxy.scheme
raise "No proxy host" unless proxy.host
raise 'No proxy host' unless proxy.host
host = proxy.host
host = host[1...-1] if host[0] == '[' # for IPv6 address