diff options
| author | Markus Reiter | 2017-05-29 17:50:13 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-29 17:50:13 +0200 |
| commit | d700a5ba188b0a01fba21401c4432239c29835bc (patch) | |
| tree | 9be4441f5331743b3979f0310f2a3dc05f0e0906 /Library/Homebrew/cask | |
| parent | 481a91a92d869c7363edcc7c114b972680ba1aaa (diff) | |
| download | brew-d700a5ba188b0a01fba21401c4432239c29835bc.tar.bz2 | |
Use `Formatter::pluralize` where possible.
Diffstat (limited to 'Library/Homebrew/cask')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 64cd11f9e..fe7889b73 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -55,8 +55,7 @@ module Hbc end def self.cask_count_for_tap(tap) - count = tap.cask_files.count - "#{count} #{count == 1 ? "cask" : "casks"}" + Formatter.pluralize(tap.cask_files.count, "cask") rescue StandardError "0 #{error_string "error reading #{tap.path}"}" end |
