summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-08 11:13:37 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commite0bfc77824d2fec95965ff4b46524cc8a85bc24a (patch)
tree508fae33b56c6cbe6fbaae7e986a19b494bce36b /lib/rubygems.rb
parente6be06e4ef260a1a96fddd47fd632d61875b8b85 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 8e23c32..03f9063 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -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.