Drop unnecessary Pathname creation

This commit is contained in:
Jack Nagel 2013-12-27 16:09:31 -06:00
parent 2e22465aa4
commit e29cbc5a48

View File

@ -126,7 +126,7 @@ class Keg
def dylib_id_for file, options={} def dylib_id_for file, options={}
# the shortpath ensures that library upgrades dont break installed tools # the shortpath ensures that library upgrades dont 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]