From e29cbc5a48616ad22b5a07951887109f65cabada Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 27 Dec 2013 16:09:31 -0600 Subject: [PATCH] Drop unnecessary Pathname creation --- Library/Homebrew/keg_fix_install_names.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 4ef5438385..3fc827bf53 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -126,7 +126,7 @@ class Keg def dylib_id_for file, options={} # 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) if shortpath.exist? and not options[:keg_only]