diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 73b236644bc9d..85f6df62f31a5 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -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