From 741a4168d0c5455ecc1574ae1ebe08df1ebfddd8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 10 Jul 2012 20:55:28 -0500 Subject: [PATCH] SoftwareSpec: simplify conditional --- Library/Homebrew/formula_support.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 023d225d9d..5c957f422a 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