From e60523766e9f78f19d867939d12b12a2eae7563d Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Thu, 26 Oct 2023 15:45:06 -0400 Subject: [PATCH] audit: code review changes --- Library/Homebrew/cask/audit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index fbc9ff10c1..f64daf1028 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -544,6 +544,7 @@ module Cask sig { void } def audit_min_os return unless online? + return unless strict? odebug "Auditing minimum OS version" @@ -630,6 +631,7 @@ module Cask break if plist_min_os end end + begin MacOSVersion.new(plist_min_os).strip_patch rescue MacOSVersion::Error