Skip to content

Commit

Permalink
Reorder #audit_min_os array for consistency
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
samford committed Nov 9, 2023
1 parent c158f93 commit 57cda29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def audit_min_os
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

Check warning on line 577 in Library/Homebrew/cask/audit.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cask/audit.rb#L577

Added line #L577 was not covered by tests

return if min_os.nil? || min_os <= HOMEBREW_MACOS_OLDEST_ALLOWED

Expand Down

0 comments on commit 57cda29

Please sign in to comment.