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).
This commit is contained in:
Sam Ford 2023-11-08 15:21:15 -05:00
parent 28451bd2bc
commit 491e2c4a80
No known key found for this signature in database
GPG Key ID: 7AF5CBEE1DD6F76D

View File

@ -574,7 +574,7 @@ module Cask
debug_messages << "Plist #{plist_min_os}" if plist_min_os debug_messages << "Plist #{plist_min_os}" if plist_min_os
debug_messages << "Sparkle #{sparkle_min_os}" if sparkle_min_os debug_messages << "Sparkle #{sparkle_min_os}" if sparkle_min_os
odebug "Minimum OS version: #{debug_messages.join(" | ")}" unless debug_messages.empty? 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 return if min_os.nil? || min_os <= HOMEBREW_MACOS_OLDEST_ALLOWED