1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove unnecessary guard clause

Since 1ccf0912a161d20e0c4a7b139fd76e8739a411ba, this method no longer
uses `Kernel.gem`, so this guard clause is now unnecessary.

https://github.com/rubygems/rubygems/commit/8a19e7401c
This commit is contained in:
David Rodríguez 2020-07-08 11:13:37 +02:00 committed by Hiroshi SHIBATA
parent e6be06e4ef
commit e0bfc77824
Notes: git 2020-07-31 21:08:08 +09:00

View file

@ -617,7 +617,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
def self.load_yaml
return if @yaml_loaded
return unless defined?(gem)
begin
# Try requiring the gem version *or* stdlib version of psych.