aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_support.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index d4e6a1476..b049c6dfb 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -206,16 +206,10 @@ class BuildOptions
end
def add name, description=nil
- if description.nil?
- case name
- when :universal, "universal"
- description = "Build a universal binary"
- when "32-bit"
- description = "Build 32-bit only"
- else
- description = ""
- end
- end
+ description ||= case name.to_s
+ when "universal" then "Build a universal binary"
+ when "32-bit" then "Build 32-bit only"
+ end.to_s
@options << Option.new(name, description)
end