aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-06-09 14:54:49 -0500
committerJack Nagel2014-06-09 14:57:21 -0500
commite3f082c294862619847a7f5234340b6b69964ff8 (patch)
treed7bbaa5aeedb804eaa118de5c56c0729a27150e2 /Library/Homebrew/cmd
parent974b7e71ef11a09f188f0f5e40d609c0732b3406 (diff)
downloadbrew-e3f082c294862619847a7f5234340b6b69964ff8.tar.bz2
Stop joining symbols to pathnames
Ruby 2.2's native Pathname#/ accepts only string-like objects.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/uninstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index d9d13df3e..9400a3898 100644
--- a/Library/Homebrew/cmd/uninstall.rb
+++ b/Library/Homebrew/cmd/uninstall.rb
@@ -36,7 +36,7 @@ module Homebrew extend self
end
def rm_opt_link name
- optlink = HOMEBREW_PREFIX/:opt/name
+ optlink = HOMEBREW_PREFIX.join("opt", name)
optlink.unlink if optlink.symlink?
end