Remove redundant xattr doctor check on systems without quarantine support

This commit is contained in:
Rylan Polster 2025-06-24 03:07:04 +00:00 committed by GitHub
parent 27b9bf2377
commit 426da94cc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1009,6 +1009,8 @@ module Homebrew
end end
def check_cask_xattr def check_cask_xattr
# If quarantine is not available, a warning is already shown by check_cask_quarantine_support so just return
return unless Cask::Quarantine.available?
return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr") return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr")
result = system_command "/usr/bin/xattr", args: ["-h"] result = system_command "/usr/bin/xattr", args: ["-h"]