diff options
| author | Jack Nagel | 2012-07-10 20:55:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-18 11:12:09 -0500 |
| commit | e53bb4f18bf932fa14f0187ecdf115bc35c82145 (patch) | |
| tree | 5bff36793743905e56649f3c49f59779e2c9316b /Library | |
| parent | 9e80ec2c11c36ce99b53910a4340d2905b8a2d18 (diff) | |
| download | homebrew-e53bb4f18bf932fa14f0187ecdf115bc35c82145.tar.bz2 | |
SoftwareSpec: simplify conditional
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 4 |
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 |
