diff options
| author | Jack Nagel | 2015-03-25 20:26:04 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-03-25 20:26:04 -0400 |
| commit | 380b8ce46ddfdcbd02fa1babeb828f217d76d0c3 (patch) | |
| tree | 5321c70f1a009f8dbb4a08f0ec98b1ffc4bae129 /Library | |
| parent | 1351f67e91c75451fb2c7ce8f024adb86dcb542d (diff) | |
| download | brew-380b8ce46ddfdcbd02fa1babeb828f217d76d0c3.tar.bz2 | |
Combine assignments
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
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 |
