diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 371635f967e16..ee55e68df068d 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -784,9 +784,9 @@ def audit_specs tag ||= stable.version if @online - return if owner.nil? || repo.nil? + return if owner.nil? - error = SharedAudits.gitlab_release(owner, repo, tag, formula:) + error = SharedAudits.gitlab_release(owner, T.must(repo), tag, formula:) problem error if error end when %r{^https://github.com/([\w-]+)/([\w-]+)} @@ -796,9 +796,9 @@ def audit_specs tag ||= formula.stable.specs[:tag] if @online - return if owner.nil? || repo.nil? + return if owner.nil? - error = SharedAudits.github_release(owner, repo, tag, formula:) + error = SharedAudits.github_release(owner, T.must(repo), tag, formula:) problem error if error end end