From 426da94cc9dba2576d9b2fcbe607ce26b2458f67 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Tue, 24 Jun 2025 03:07:04 +0000 Subject: [PATCH] Remove redundant `xattr` doctor check on systems without quarantine support --- Library/Homebrew/diagnostic.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index eb4bdef747..fa2c4330a1 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1009,6 +1009,8 @@ module Homebrew end 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") result = system_command "/usr/bin/xattr", args: ["-h"]