mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
util/rubocop -A --only Performance/Casecmp
This commit is contained in:
parent
866831d8e9
commit
b6d3c06936
3 changed files with 4 additions and 4 deletions
|
@ -82,8 +82,8 @@ Do you want to add this source?
|
|||
def check_rubygems_https(source_uri) # :nodoc:
|
||||
uri = URI source_uri
|
||||
|
||||
if uri.scheme && uri.scheme.downcase == "http" &&
|
||||
uri.host.downcase == "rubygems.org"
|
||||
if uri.scheme && uri.scheme.casecmp("http").zero? &&
|
||||
uri.host.casecmp("rubygems.org").zero?
|
||||
question = <<-QUESTION.chomp
|
||||
https://rubygems.org is recommended for security over #{uri}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue