diff options
| author | Markus Reiter | 2017-03-11 23:35:33 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-11 23:35:33 +0100 |
| commit | 7a8d782365b615e066bead9b4829f6fce7f375df (patch) | |
| tree | 0c6716cdd000e2f45f823450faecf798db957426 /Library/Homebrew/dev-cmd | |
| parent | 666ab1438c0aba8d4c0f4b540a5ccdba485f0eca (diff) | |
| parent | 44d367edca03acaa737a3156d05bf462f79f0fc3 (diff) | |
| download | brew-7a8d782365b615e066bead9b4829f6fce7f375df.tar.bz2 | |
Merge pull request #2314 from reitermarkus/formatter-pluralize
Replace `#plural` by `Formatter::pluralize`.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 4 |
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 |
