From 491e2c4a80bf3add8994aef69e1bea8ed02d761a Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:21:15 -0500 Subject: [PATCH] Reorder #audit_min_os array for consistency This change doesn't affect the behavior of the `#audit_min_os` method and simply reorders the array members to place `plist_min_os` before `sparkle_min_os` for the sake of consistency (using the same order as the preceding lines). --- Library/Homebrew/cask/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 1cc4433c19..e94d140d43 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -574,7 +574,7 @@ module Cask debug_messages << "Plist #{plist_min_os}" if plist_min_os debug_messages << "Sparkle #{sparkle_min_os}" if sparkle_min_os odebug "Minimum OS version: #{debug_messages.join(" | ")}" unless debug_messages.empty? - min_os = [sparkle_min_os, plist_min_os].compact.max + min_os = [plist_min_os, sparkle_min_os].compact.max return if min_os.nil? || min_os <= HOMEBREW_MACOS_OLDEST_ALLOWED