aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-03-25 20:26:04 -0400
committerJack Nagel2015-03-25 20:26:04 -0400
commitff4e10ff2bb581274527c6fa2d1354868f321812 (patch)
tree2a67cef7ded7d4a637b0350b335c0ae378a7eeed /Library/Homebrew
parenta3ec3adb5d5de90dfc8508fa7fc2d6696ab7f273 (diff)
downloadhomebrew-ff4e10ff2bb581274527c6fa2d1354868f321812.tar.bz2
Combine assignments
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index a9a9672f9..0c0555f0e 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -37,10 +37,8 @@ class Pathname
def install_p(src, new_basename)
raise Errno::ENOENT, src.to_s unless File.symlink?(src) || File.exist?(src)
- dst = join(new_basename)
-
src = src.to_s
- dst = dst.to_s
+ dst = join(new_basename).to_s
dst = yield(src, dst) if block_given?
return unless dst