aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-08-07 00:48:13 -0500
committerJack Nagel2014-08-07 00:48:13 -0500
commit8039107afb7b444a337db17e3635009c44f73cbe (patch)
tree2610d60df1d59b3132fdfaa98c4cb85cbc70bab1 /Library/Homebrew
parent6718bc554f090630491e8ec2fe072c538d90592a (diff)
downloadbrew-8039107afb7b444a337db17e3635009c44f73cbe.tar.bz2
Default to the empty string instead of nil
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 3988085ce..6b982a405 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -3,9 +3,9 @@ require 'set'
class Option
attr_reader :name, :description, :flag
- def initialize(name, description=nil)
+ def initialize(name, description="")
@name, @flag = split_name(name)
- @description = description.to_s
+ @description = description
end
def to_s