Drop unnecessary Pathname creation
This commit is contained in:
parent
2e22465aa4
commit
e29cbc5a48
@ -126,7 +126,7 @@ class Keg
|
|||||||
|
|
||||||
def dylib_id_for file, options={}
|
def dylib_id_for file, options={}
|
||||||
# the shortpath ensures that library upgrades don’t break installed tools
|
# the shortpath ensures that library upgrades don’t break installed tools
|
||||||
relative_path = Pathname.new(file).relative_path_from(self)
|
relative_path = file.relative_path_from(self)
|
||||||
shortpath = HOMEBREW_PREFIX.join(relative_path)
|
shortpath = HOMEBREW_PREFIX.join(relative_path)
|
||||||
|
|
||||||
if shortpath.exist? and not options[:keg_only]
|
if shortpath.exist? and not options[:keg_only]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user