summaryrefslogtreecommitdiff
path: root/lib/rubygems/config_file.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:08:50 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit0b632b9cddef76514635ad460d40b3a8d346602f ()
tree33a2b39d30bb0c3de6600de132c7f6a4cda4e775 /lib/rubygems/config_file.rb
parent567db6064baf572e3510c0322ec536ad84c81d57 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
https://.com/rubygems/rubygems/commit/1c3356a872
-rw-r--r--lib/rubygems/config_file.rb2
1 files changed, 1 insertions, 1 deletions
@@ -352,7 +352,7 @@ if you believe they were disclosed to a third party.
begin
content = Gem::SafeYAML.load(File.read(filename))
- unless content.kind_of? Hash
warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
return {}
end