aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2017-12-07 17:08:19 +0100
committerGitHub2017-12-07 17:08:19 +0100
commit34b03dea52b4f5134484eba1fcf277dca935a633 (patch)
tree0f5b271e43bb96183f5585cf284b21e5a6effda6 /Library/Homebrew
parent286d74eec2dad60562f81f9fc02043ad82466b5c (diff)
parent683bfee8b0704c4940d356a2211761a1195fcd18 (diff)
downloadbrew-34b03dea52b4f5134484eba1fcf277dca935a633.tar.bz2
Merge pull request #3532 from reitermarkus/to_s
Add missing `to_s`.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb
index 94e906a73..d299733d8 100644
--- a/Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb
+++ b/Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb
@@ -222,7 +222,7 @@ module Hbc
paths.each do |path|
resolved_path = Pathname.new(path)
- resolved_path = resolved_path.expand_path if path.start_with?("~")
+ resolved_path = resolved_path.expand_path if path.to_s.start_with?("~")
if resolved_path.relative? || resolved_path.split.any? { |part| part.to_s == ".." }
opoo "Skipping #{Formatter.identifier(action)} for relative path '#{path}'."