diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-01 12:44:48 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:32 +0200 |
commit | f5ddf680f1bba8bd3720b50829611c1d4ff10fca (patch) | |
tree | 5604613d1645cf7b344b8d51d83249947f0d2c84 | |
parent | a65304f0da902cbbad775d0fb46dc939ebb4961d (diff) | |
download | bundler-f5ddf680f1bba8bd3720b50829611c1d4ff10fca.tar.gz |
Inline one method
All the other screen output and checks for `--parseable` are doing
inline, so let's do it here too.
-rw-r--r-- | lib/bundler/cli/outdated.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 242d60b629..7f66eaae74 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -96,7 +96,9 @@ module Bundler end if outdated_gems.empty? - display_nothing_outdated_message + unless options[:parseable] + Bundler.ui.info(nothing_outdated_message) + end else if options_include_groups relevant_outdated_gems = outdated_gems.group_by {|g| g[:groups] }.sort.flat_map do |groups, gems| @@ -155,12 +157,6 @@ module Bundler active_spec end - def display_nothing_outdated_message - unless options[:parseable] - Bundler.ui.info(nothing_outdated_message) - end - end - def print_gems(gems_list) gems_list.each do |gem| print_gem( |