diff options
| author | Jack Nagel | 2013-12-09 15:15:52 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-12-09 15:15:52 -0600 | 
| commit | e1480953e605183cf0aa8a63e212576efa511e7e (patch) | |
| tree | 14c5bf4c883caee2bb9abc121c21c53c4e2ff19c /Library/Homebrew/formula.rb | |
| parent | f579d9045887ee3bf021d052d7de8734b94e1dec (diff) | |
| download | brew-e1480953e605183cf0aa8a63e212576efa511e7e.tar.bz2 | |
Use accessors to silence uninitalized ivar warnings
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b29df1cba..c18fb59a1 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -70,12 +70,12 @@ class Formula    def determine_active_spec      case -    when @head && ARGV.build_head?        then @head    # --HEAD -    when @devel && ARGV.build_devel?      then @devel   # --devel -    when @bottle && install_bottle?(self) then @bottle  # bottle available -    when @stable                          then @stable -    when @devel && @stable.nil?           then @devel   # devel-only -    when @head && @stable.nil?            then @head    # head-only +    when head && ARGV.build_head?        then head    # --HEAD +    when devel && ARGV.build_devel?      then devel   # --devel +    when bottle && install_bottle?(self) then bottle  # bottle available +    when stable                          then stable +    when devel && stable.nil?            then devel   # devel-only +    when head && stable.nil?             then head    # head-only      else        raise FormulaSpecificationError, "formulae require at least a URL"      end  | 
