diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index fb51905299..cd08395aa7 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -144,10 +144,7 @@ module Homebrew errors_summary = "#{problem_plural} in #{formula_plural} detected" errors_summary += ", #{corrected_problem_plural} corrected" if corrected_problem_count.positive? - if problem_count.positive? || - (new_formula_problem_count.positive? && !created_pr_comment) - ofail errors_summary - end + ofail errors_summary if problem_count.positive? || new_formula_problem_count.positive? end def format_problem_lines(problems) @@ -597,7 +594,7 @@ module Homebrew _, user, repo = *regex.match(formula.homepage) unless user return if !user || !repo - repo.gsub!(/.git$/, "") + repo.delete_suffix!(".git") [user, repo] end