mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
[rubygems/rubygems] Remove unnecessary guard clause
Since 1ccf0912a161d20e0c4a7b139fd76e8739a411ba, this method no longer
uses `Kernel.gem`, so this guard clause is now unnecessary.
8a19e7401c
This commit is contained in:
parent
e6be06e4ef
commit
e0bfc77824
Notes:
git
2020-07-31 21:08:08 +09:00
1 changed files with 0 additions and 1 deletions
|
@ -617,7 +617,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
|
||||||
|
|
||||||
def self.load_yaml
|
def self.load_yaml
|
||||||
return if @yaml_loaded
|
return if @yaml_loaded
|
||||||
return unless defined?(gem)
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
# Try requiring the gem version *or* stdlib version of psych.
|
# Try requiring the gem version *or* stdlib version of psych.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue