summaryrefslogtreecommitdiff
path: root/lib/rubygems/config_file.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-04-19 19:00:29 +0900
committergit <[email protected]>2023-04-20 01:57:17 +0000
commitce38ad6963b609b4054bba6165abb78414d5428e ()
tree34f65046acbdbf2615458272aa6156994f0f3100 /lib/rubygems/config_file.rb
parentb42f0094ce4198fac535bd69bf173732c0e53ab5 (diff)
[rubygems/rubygems] util/rubocop -A
https://.com/rubygems/rubygems/commit/784e5e2fe5
-rw-r--r--lib/rubygems/config_file.rb2
1 files changed, 1 insertions, 1 deletions
@@ -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?(":") }
warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
return {}
else