aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-12-09 15:15:52 -0600
committerJack Nagel2013-12-09 15:15:52 -0600
commite8f63c598658ccc162e7aca32a49f1f86534c801 (patch)
treefc602912cfe4b1d740bc131bf7fdbd06040b1f48
parentaf24601634283f0c9e7bf07e9265ee21268fc5a2 (diff)
downloadhomebrew-e8f63c598658ccc162e7aca32a49f1f86534c801.tar.bz2
Use accessors to silence uninitalized ivar warnings
-rw-r--r--Library/Homebrew/formula.rb12
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