cmd/doctor: fix Rubocop warnings.

This commit is contained in:
Mike McQuaid 2016-09-10 10:24:56 +01:00
parent 5e0c222029
commit c45e36ffde

View File

@ -40,20 +40,19 @@ module Homebrew
end end
out = checks.send(method) out = checks.send(method)
unless out.nil? || out.empty? next if out.nil? || out.empty?
if first_warning if first_warning
$stderr.puts <<-EOS.undent $stderr.puts <<-EOS.undent
#{Tty.white}Please note that these warnings are just used to help the Homebrew maintainers #{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 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} working fine: please don't worry and just ignore them. Thanks!#{Tty.reset}
EOS EOS
end
$stderr.puts
opoo out
Homebrew.failed = true
first_warning = false
end end
$stderr.puts
opoo out
Homebrew.failed = true
first_warning = false
end end
puts "Your system is ready to brew." unless Homebrew.failed? puts "Your system is ready to brew." unless Homebrew.failed?