diff options
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/formatter.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/utils/formatter.rb b/Library/Homebrew/utils/formatter.rb index 88616c6f8..099b1c6d3 100644 --- a/Library/Homebrew/utils/formatter.rb +++ b/Library/Homebrew/utils/formatter.rb @@ -96,11 +96,9 @@ module Formatter *adjectives, noun = singular.split(" ") - if plural.nil? - plural = { - "formula" => "formulae", - }.fetch(noun, "#{noun}s") - end + plural ||= { + "formula" => "formulae", + }.fetch(noun, "#{noun}s") words = adjectives << plural |
