From a3ed94ef43fed8a5dbc073dfb2072ec76ed73fce Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 10 Aug 2024 21:44:26 +0100 Subject: [PATCH] formula_auditor: `repo` should never be nil, so use `T.must` https://github.com/Homebrew/brew/pull/18004#discussion_r1712680763 --- Library/Homebrew/formula_auditor.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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