Merge pull request #18154 from chenrui333/fix-tag-audit

This commit is contained in:
Carlo Cabrera 2024-08-25 04:36:20 +08:00 committed by GitHub
commit af4cd63408
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -802,7 +802,7 @@ module Homebrew
tag = SharedAudits.github_tag_from_url(url)
tag ||= formula.stable.specs[:tag]
if @online
if @online && !tag.nil?
error = SharedAudits.github_release(owner, repo, tag, formula:)
problem error if error
end