1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] All supported rubies have File.realpath

https://github.com/rubygems/rubygems/commit/c60ed4878c
This commit is contained in:
David Rodríguez 2022-04-01 11:39:38 +02:00 committed by Hiroshi SHIBATA
parent f4009566af
commit 479ba9a44b
Notes: git 2022-04-28 19:09:14 +09:00

View file

@ -325,7 +325,7 @@ module Bundler
def resolve_path(path)
expanded = File.expand_path(path)
return expanded unless File.respond_to?(:realpath) && File.exist?(expanded)
return expanded unless File.exist?(expanded)
File.realpath(expanded)
end