From f5ddf680f1bba8bd3720b50829611c1d4ff10fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 1 Oct 2019 12:44:48 +0200 Subject: Inline one method All the other screen output and checks for `--parseable` are doing inline, so let's do it here too. --- lib/bundler/cli/outdated.rb | 10 +++------- 1 file 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( -- cgit v1.2.1