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 Oct 2, 2020
1 parent 214fefc commit 43d94d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bundler/lib/bundler/resolver.rb
Expand Up @@ -160,8 +160,7 @@ def search_for(dependency)
selected_sgs << sg_ruby if sg_ruby
sg_all_platforms = nil
all_platforms = @platforms + [platform]
sorted_all_platforms = self.class.sort_platforms(all_platforms)
sorted_all_platforms.reverse_each do |other_platform|
self.class.sort_platforms(all_platforms).reverse_each do |other_platform|
if sg_all_platforms.nil?
sg_all_platforms = sg.copy_for(other_platform)
else
Expand Down

0 comments on commit 43d94d3

Please sign in to comment.