diff --git a/Library/Homebrew/cask/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/artifact/abstract_uninstall.rb index a43358d029..de5044667a 100644 --- a/Library/Homebrew/cask/artifact/abstract_uninstall.rb +++ b/Library/Homebrew/cask/artifact/abstract_uninstall.rb @@ -362,7 +362,7 @@ module Cask def trash_paths(*paths, command: nil, **_) return if paths.empty? - trashable, untrashable = paths.split(&:writable?) + trashable, untrashable = paths.partition(&:writable?) unless untrashable.empty? opoo "These files cannot be moved to the user's Trash: " puts untrashable