From ce38ad6963b609b4054bba6165abb78414d5428e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 19 Apr 2023 19:00:29 +0900 Subject: [rubygems/rubygems] util/rubocop -A https://github.com/rubygems/rubygems/commit/784e5e2fe5 --- lib/rubygems/config_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems/config_file.rb') diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index 3e9438ec0e..e44e57a599 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -348,7 +348,7 @@ if you believe they were disclosed to a third party. begin config = self.class.load_with_rubygems_config_hash(File.read(filename)) - if config.keys.any? { |k| k.to_s.gsub(%r{https?:\/\/}, "").include?(":") } + if config.keys.any? {|k| k.to_s.gsub(%r{https?:\/\/}, "").include?(":") } warn "Failed to load #{filename} because it doesn't contain valid YAML hash" return {} else -- cgit v1.2.3