From c45e36ffde1805ec7706fa28895b120909f69de7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 10 Sep 2016 10:24:56 +0100 Subject: cmd/doctor: fix Rubocop warnings. --- Library/Homebrew/cmd/doctor.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index f6d5d8d4c..8dd78bf1a 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -40,20 +40,19 @@ module Homebrew end out = checks.send(method) - unless out.nil? || out.empty? - if first_warning - $stderr.puts <<-EOS.undent + next if out.nil? || out.empty? + if first_warning + $stderr.puts <<-EOS.undent #{Tty.white}Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!#{Tty.reset} - EOS - end - - $stderr.puts - opoo out - Homebrew.failed = true - first_warning = false + EOS end + + $stderr.puts + opoo out + Homebrew.failed = true + first_warning = false end puts "Your system is ready to brew." unless Homebrew.failed? -- cgit v1.2.3