diff options
| author | Jack Nagel | 2014-08-08 01:34:45 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-08-08 01:34:45 -0500 | 
| commit | af804f74759c44f220b4d88b1c0b27218f33110e (patch) | |
| tree | fbaa046f153c8101eafa46b372ddd482a91f5f04 /Library/Homebrew/formula_support.rb | |
| parent | 472a2cec1ecfcecb63ef6df9bd78592838fac600 (diff) | |
| download | brew-af804f74759c44f220b4d88b1c0b27218f33110e.tar.bz2 | |
Remove another unnecessary default argument
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index f3587e9a8..aa3174219 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -4,9 +4,7 @@ FormulaConflict = Struct.new(:name, :reason)  # Used to annotate formulae that duplicate OS X provided software  # or cause conflicts when linked in.  class KegOnlyReason -  attr_reader :reason, :explanation - -  def initialize reason, explanation=nil +  def initialize(reason, explanation)      @reason = reason      @explanation = explanation    end @@ -38,9 +36,9 @@ class KegOnlyReason        #{@explanation}        EOS      when :provided_until_xcode43 -      "Xcode provides this software prior to version 4.3.\n\n#{explanation}" +      "Xcode provides this software prior to version 4.3.\n\n#{@explanation}"      when :provided_until_xcode5 -      "Xcode provides this software prior to version 5.\n\n#{explanation}" +      "Xcode provides this software prior to version 5.\n\n#{@explanation}"      else        @reason      end.strip  | 
