diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-24 11:02:21 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-25 11:02:04 +0200 |
commit | 507fa863d5ae9dfae15a85d989f34acba8d653fd (patch) | |
tree | 817aace8ae28f4b883cf1b2a3bfda5fc64913cb2 /lib | |
parent | a59887171c53f3e88e18c6e714247af0d94447f2 (diff) | |
download | bundler-507fa863d5ae9dfae15a85d989f34acba8d653fd.tar.gz |
SImplify outdated command
I don't know why a nil group was being artificially added and then
always skipped.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/cli/outdated.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 0b710e9782..3645db34f4 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -110,13 +110,9 @@ module Bundler if options_include_groups ordered_groups = outdated_gems_by_groups.keys.compact.sort - ordered_groups.insert(0, nil).each do |groups| + ordered_groups.each do |groups| gems = outdated_gems_by_groups[groups] - contains_group = if groups - groups.split(", ").include?(options[:group]) - else - options[:group] == "group" - end + contains_group = groups.split(", ").include?(options[:group]) next if (!options[:groups] && !contains_group) || gems.nil? |