From e53bb4f18bf932fa14f0187ecdf115bc35c82145 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 10 Jul 2012 20:55:28 -0500 Subject: SoftwareSpec: simplify conditional --- Library/Homebrew/formula_support.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3