Skip to content

Commit

Permalink
Merge pull request #16443 from apainintheneck/fix-type-error-in-livec…
Browse files Browse the repository at this point in the history
…heck-url-audit

cmd/audit: fix type error in cask livecheck url audit
  • Loading branch information
apainintheneck authored Jan 8, 2024
2 parents 42a42c9 + 926c5b7 commit b3751bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,11 @@ def audit_url_https_availability
def audit_livecheck_https_availability
return unless online?
return unless cask.livecheckable?
return if cask.livecheck.url.is_a?(Symbol)
return unless (url = cask.livecheck.url)
return if url.is_a?(Symbol)

validate_url_for_https_availability(
cask.livecheck.url, "livecheck URL",
url, "livecheck URL",
check_content: true
)
end
Expand Down

0 comments on commit b3751bc

Please sign in to comment.