aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-12-06 11:46:30 +0100
committerMarkus Reiter2017-12-06 11:46:30 +0100
commit683bfee8b0704c4940d356a2211761a1195fcd18 (patch)
tree173ab315d79a93e78c57b961c3a5e6efe8fa1d2f
parent497348a8b7413e48cf78cf9bf4d7904db627c9ee (diff)
downloadbrew-683bfee8b0704c4940d356a2211761a1195fcd18.tar.bz2
Add missing `to_s`.
-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}'."