aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-07-10 20:55:28 -0500
committerJack Nagel2012-08-18 11:12:09 -0500
commite53bb4f18bf932fa14f0187ecdf115bc35c82145 (patch)
tree5bff36793743905e56649f3c49f59779e2c9316b
parent9e80ec2c11c36ce99b53910a4340d2905b8a2d18 (diff)
downloadhomebrew-e53bb4f18bf932fa14f0187ecdf115bc35c82145.tar.bz2
SoftwareSpec: simplify conditional
-rw-r--r--Library/Homebrew/formula_support.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index 023d225d9..5c957f422 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -45,9 +45,7 @@ class SoftwareSpec
def url val=nil, specs=nil
return @url if val.nil?
@url = val
- if specs.nil?
- @using = nil
- else
+ unless specs.nil?
@using = specs.delete :using
@specs = specs
end