Merge pull request #16443 from apainintheneck/fix-type-error-in-livecheck-url-audit

cmd/audit: fix type error in cask livecheck url audit
This commit is contained in:
Kevin 2024-01-07 16:04:51 -08:00 committed by GitHub
commit b3751bca8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,10 +806,11 @@ module Cask
def audit_livecheck_https_availability def audit_livecheck_https_availability
return unless online? return unless online?
return unless cask.livecheckable? 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( validate_url_for_https_availability(
cask.livecheck.url, "livecheck URL", url, "livecheck URL",
check_content: true check_content: true
) )
end end