``` diff --git a/lib/ruby/stdlib/rubygems/util.rb b/lib/ruby/stdlib/rubygems/util.rb index faad63067f..20910cd7d2 100644 --- a/lib/ruby/stdlib/rubygems/util.rb +++ b/lib/ruby/stdlib/rubygems/util.rb @@ -121,11 +121,11 @@ module Gem::Util # returning absolute paths to the matching files. def self.glob_files_in_dir(glob, base_path) - if RUBY_VERSION >= "2.5" - Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) } - else + # if RUBY_VERSION >= "2.5" + # Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) } + # else Dir.glob(File.expand_path(glob, base_path)) - end + # end end ## ```