aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 15:56:00 -0500
committerJack Nagel2014-04-06 16:11:02 -0500
commitbfda414e2673cee7a1e9b05b8867868a315f8a18 (patch)
treef6b6c679cbe665c05748b58860ab536b658253d1 /Library
parent42049d3a21efa4fd68e5a8b0679d82061b684378 (diff)
downloadhomebrew-bfda414e2673cee7a1e9b05b8867868a315f8a18.tar.bz2
drop unnecessary nil checks
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 5673c898a..398f14413 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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