Skip to content

Commit

Permalink
Remove unnecessary local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jul 30, 2022
1 parent ffb161b commit a997210
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bundler/lib/bundler/lazy_specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ def __materialize__(platform)
else
source.specs.search(self)
end
best_installable_candidate = candidates.reverse.find do |spec|
search = candidates.reverse.find do |spec|
spec.is_a?(StubSpecification) ||
(spec.required_ruby_version.satisfied_by?(Gem.ruby_version) &&
spec.required_rubygems_version.satisfied_by?(Gem.rubygems_version))
end
search = best_installable_candidate || candidates.last
end || candidates.last
search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
search
end
Expand Down

0 comments on commit a997210

Please sign in to comment.