diff options
| author | Mike McQuaid | 2016-09-10 10:24:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-11 17:58:59 +0100 |
| commit | c45e36ffde1805ec7706fa28895b120909f69de7 (patch) | |
| tree | 17e77360d5081d6cd2f1b65be1cd4310957ae40d | |
| parent | 5e0c22202955243e07ab18a56ea8019b3dd200c6 (diff) | |
| download | brew-c45e36ffde1805ec7706fa28895b120909f69de7.tar.bz2 | |
cmd/doctor: fix Rubocop warnings.
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 19 |
1 files changed, 9 insertions, 10 deletions
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? |
