summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-24 11:12:59 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-25 11:02:05 +0200
commit00472b1fe8b54630f2d3a86080337c46e256fecd (patch)
treeefb19ca13ac976cc0af1adab398c96ca417f915f
parent2a3ddf479606a3595f424baecfc191cd72e0e3fc (diff)
downloadbundler-00472b1fe8b54630f2d3a86080337c46e256fecd.tar.gz
Spare a local variable
-rw-r--r--lib/bundler/cli/outdated.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb
index 028bb3b05e..ba654baf37 100644
--- a/lib/bundler/cli/outdated.rb
+++ b/lib/bundler/cli/outdated.rb
@@ -109,8 +109,7 @@ module Bundler
end
if options_include_groups
- ordered_groups = outdated_gems_by_groups.keys.compact.sort
- ordered_groups.each do |groups|
+ outdated_gems_by_groups.keys.compact.sort.each do |groups|
gems = outdated_gems_by_groups[groups]
next if gems.nil?