Use accessors to silence uninitalized ivar warnings
This commit is contained in:
parent
f579d90458
commit
e1480953e6
@ -70,12 +70,12 @@ class Formula
|
|||||||
|
|
||||||
def determine_active_spec
|
def determine_active_spec
|
||||||
case
|
case
|
||||||
when @head && ARGV.build_head? then @head # --HEAD
|
when head && ARGV.build_head? then head # --HEAD
|
||||||
when @devel && ARGV.build_devel? then @devel # --devel
|
when devel && ARGV.build_devel? then devel # --devel
|
||||||
when @bottle && install_bottle?(self) then @bottle # bottle available
|
when bottle && install_bottle?(self) then bottle # bottle available
|
||||||
when @stable then @stable
|
when stable then stable
|
||||||
when @devel && @stable.nil? then @devel # devel-only
|
when devel && stable.nil? then devel # devel-only
|
||||||
when @head && @stable.nil? then @head # head-only
|
when head && stable.nil? then head # head-only
|
||||||
else
|
else
|
||||||
raise FormulaSpecificationError, "formulae require at least a URL"
|
raise FormulaSpecificationError, "formulae require at least a URL"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user