mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
SoftwareSpec: simplify conditional
This commit is contained in:
1 parent
9e80ec2c11
commit
e53bb4f18b
1 file changed
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user