From c7aa286336b1f0d283228ad3c29d253b21e32df7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 22 May 2018 14:52:02 +0100 Subject: [PATCH] audit: tweak line length/style. --- Library/Homebrew/dev-cmd/audit.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index f1aa9097c7..6fbd2b2848 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -154,9 +154,14 @@ module Homebrew end total_problems_count = problem_count + new_formula_problem_count - errors_summary = "#{Formatter.pluralize(total_problems_count, "problem")} in #{Formatter.pluralize(formula_count, "formula")}" + problem_plural = Formatter.pluralize(total_problems_count, "problem") + formula_plural = Formatter.pluralize(formula_count, "formula") + errors_summary = "#{problem_plural} in #{formula_plural}" - ofail errors_summary if problem_count.positive? || (new_formula_problem_count.positive? && !created_pr_comment) + if problem_count.positive? || + (new_formula_problem_count.positive? && !created_pr_comment) + ofail errors_summary + end end def format_problem_lines(problems)