Skip to content

Commit 34b03de

Browse files
authored
Merge pull request #3532 from reitermarkus/to_s
Add missing `to_s`.
2 parents 286d74e + 683bfee commit 34b03de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/cask/lib/hbc/artifact/abstract_uninstall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def each_resolved_path(action, paths)
222222
paths.each do |path|
223223
resolved_path = Pathname.new(path)
224224

225-
resolved_path = resolved_path.expand_path if path.start_with?("~")
225+
resolved_path = resolved_path.expand_path if path.to_s.start_with?("~")
226226

227227
if resolved_path.relative? || resolved_path.split.any? { |part| part.to_s == ".." }
228228
opoo "Skipping #{Formatter.identifier(action)} for relative path '#{path}'."

0 commit comments

Comments
 (0)