mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_auditor: ensure tag is not nil when doing online audit
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
ff8bb50cfa
commit
a4dd50f6f1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user