diff options
| author | Markus Reiter | 2017-12-06 11:46:30 +0100 | 
|---|---|---|
| committer | Markus Reiter | 2017-12-06 11:46:30 +0100 | 
| commit | 683bfee8b0704c4940d356a2211761a1195fcd18 (patch) | |
| tree | 173ab315d79a93e78c57b961c3a5e6efe8fa1d2f | |
| parent | 497348a8b7413e48cf78cf9bf4d7904db627c9ee (diff) | |
| download | brew-683bfee8b0704c4940d356a2211761a1195fcd18.tar.bz2 | |
Add missing `to_s`.
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb | 2 | 
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}'."  | 
