aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-11 11:33:12 +0100
committerMarkus Reiter2017-03-11 21:12:51 +0100
commitc594ffefbc18933fbd89750a8720e1c0576f4ee7 (patch)
treefa2ee42b7fde0552ed7ebde95f600a3cadd6e8c8 /Library/Homebrew/dev-cmd/audit.rb
parent666ab1438c0aba8d4c0f4b540a5ccdba485f0eca (diff)
downloadbrew-c594ffefbc18933fbd89750a8720e1c0576f4ee7.tar.bz2
Add `Formatter::pluralize`.
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index cd55cdf4c..c1a89a0a5 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -91,9 +91,7 @@ module Homebrew
return if problem_count.zero?
- problems = "problem" + plural(problem_count)
- formulae = "formula" + plural(formula_count, "e")
- ofail "#{problem_count} #{problems} in #{formula_count} #{formulae}"
+ ofail "#{Formatter.pluralize(problem_count, "problem")} in #{Formatter.pluralize(formula_count, "formula")}"
end
end