drop unnecessary nil checks
This commit is contained in:
parent
7544d4856d
commit
da2a2ab748
@ -61,11 +61,11 @@ class Formula
|
||||
|
||||
def determine_active_spec
|
||||
case
|
||||
when head && ARGV.build_head? then head # --HEAD
|
||||
when devel && ARGV.build_devel? then devel # --devel
|
||||
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 stable then stable
|
||||
when devel then devel
|
||||
when head then head # head-only
|
||||
else
|
||||
raise FormulaSpecificationError, "formulae require at least a URL"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user