Skip to content

Commit

Permalink
extend/ARGV: avoid assignment in argument list
Browse files Browse the repository at this point in the history
Aside from being bad style, this also assigns to an unused variable.
  • Loading branch information
UniqMartin committed Jul 17, 2016
1 parent b512834 commit 2633f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/extend/ARGV.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def resolved_formulae
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
Expand Down

0 comments on commit 2633f88

Please sign in to comment.