Skip to content
Snippets Groups Projects
Commit 2633f888 authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

extend/ARGV: avoid assignment in argument list

Aside from being bad style, this also assigns to an unused variable.
parent b5128342
No related branches found
No related tags found
No related merge requests found
......@@ -29,14 +29,14 @@ module HomebrewArgvExtension
f = Formulary.factory(name, spec)
if f.any_version_installed?
tab = Tab.for_formula(f)
resolved_spec = spec(default=nil) || tab.spec
resolved_spec = spec(nil) || tab.spec
f.set_active_spec(resolved_spec) if f.send(resolved_spec)
f.build = tab
end
f
else
rack = Formulary.to_rack(name)
Formulary.from_rack(rack, spec(default=nil))
Formulary.from_rack(rack, spec(nil))
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment