diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-24 11:09:36 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-25 11:02:05 +0200 |
commit | 38eab3a3768966bafa71ddaf18378aeba3a53ca7 (patch) | |
tree | 702404b4c7e70c3f7b8272ef91daff0fd13d72f7 /lib/bundler | |
parent | 507fa863d5ae9dfae15a85d989f34acba8d653fd (diff) | |
download | bundler-38eab3a3768966bafa71ddaf18378aeba3a53ca7.tar.gz |
Little optimization to `bundle outdated`
No need to check the target group if the group has no outdated gems.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/cli/outdated.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 3645db34f4..b7d9b77d5e 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -112,9 +112,10 @@ module Bundler ordered_groups = outdated_gems_by_groups.keys.compact.sort ordered_groups.each do |groups| gems = outdated_gems_by_groups[groups] + next if gems.nil? contains_group = groups.split(", ").include?(options[:group]) - next if (!options[:groups] && !contains_group) || gems.nil? + next if !options[:groups] && !contains_group unless options[:parseable] Bundler.ui.info(header_group_message(groups)) |