[ruby/rubygems] Remove redundant File.expand_path

`File.realpath` already expands paths.

https://github.com/rubygems/rubygems/commit/25524ebbeb
This commit is contained in:
David Rodríguez 2021-10-01 16:16:32 +02:00 committed by git
parent 05e3d7b967
commit 6c878731c1

View File

@ -467,7 +467,7 @@ EOM
raise Gem::Package::PathError.new(filename, destination_dir) if
filename.start_with? '/'
destination_dir = File.expand_path(File.realpath(destination_dir))
destination_dir = File.realpath(destination_dir)
destination = File.expand_path(filename, destination_dir)
raise Gem::Package::PathError.new(destination, destination_dir) unless