diff options
Diffstat (limited to 'lib/rubygems/config_file.rb')
-rw-r--r-- | lib/rubygems/config_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index 4aa8b4d33a..c1dda3404d 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -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 + unless content.is_a? Hash warn "Failed to load #{filename} because it doesn't contain valid YAML hash" return {} end |