Skip to content

Commit

Permalink
Merge pull request #14302 from p-linnane/improve-sparke-audit
Browse files Browse the repository at this point in the history
cask/audit: improve handling `nil` in sparkle
  • Loading branch information
Rylan12 committed Dec 29, 2022
2 parents 938d90c + 7b6c832 commit b55f1da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,12 @@ def check_livecheck_min_os

return if cask_min_os == min_os_string

min_os_symbol = cask_min_os&.to_sym.inspect || "no minimal OS version"
add_error "Upstream defined #{min_os_string.to_sym.inspect} as minimal OS version " \
min_os_symbol = if cask_min_os.present?
cask_min_os.to_sym.inspect
else
"no minimum OS version"
end
add_error "Upstream defined #{min_os_string.to_sym.inspect} as the minimum OS version " \
"and the cask defined #{min_os_symbol}"
end

Expand Down

0 comments on commit b55f1da

Please sign in to comment.