ruby-changes:62490
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:09:03 +0900 (JST)
Subject: [ruby-changes:62490] e0bfc77824 (master): [rubygems/rubygems] Remove unnecessary guard clause
https://git.ruby-lang.org/ruby.git/commit/?id=e0bfc77824 From e0bfc77824d2fec95965ff4b46524cc8a85bc24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 8 Jul 2020 11:13:37 +0200 Subject: [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 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]} https://github.com/ruby/ruby/blob/trunk/lib/rubygems.rb#L617 def self.load_yaml return if @yaml_loaded - return unless defined?(gem) begin # Try requiring the gem version *or* stdlib version of psych. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/