audit: tweak line length/style.

This commit is contained in:
Mike McQuaid 2018-05-22 14:52:02 +01:00
parent 38c832b029
commit c7aa286336

View File

@ -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)