Cask: typo in trash_paths

This commit is contained in:
L. E. Segovia 2019-10-02 14:09:26 +00:00
parent b9a3884ebf
commit 70c49809fe
No known key found for this signature in database
GPG Key ID: D5D1DC48B52B7AD5

View File

@ -362,7 +362,7 @@ module Cask
def trash_paths(*paths, command: nil, **_) def trash_paths(*paths, command: nil, **_)
return if paths.empty? return if paths.empty?
trashable, untrashable = paths.split(&:writable?) trashable, untrashable = paths.partition(&:writable?)
unless untrashable.empty? unless untrashable.empty?
opoo "These files cannot be moved to the user's Trash: " opoo "These files cannot be moved to the user's Trash: "
puts untrashable puts untrashable