aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/pathname+yeast.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb
index 9d515fb81..f0abda91e 100644
--- a/Library/Homebrew/pathname+yeast.rb
+++ b/Library/Homebrew/pathname+yeast.rb
@@ -26,7 +26,7 @@ class Pathname
def rename newname
raise unless file?
dst=dirname+newname
- dst.unlink rescue nil
+ dst.unlink if dst.exist?
mv dst
end