From af68ceff8835bd08fb54653e1e213080d0755868 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:57:09 +0900 Subject: [PATCH] repair Diagnostic::Checks#all --- Library/Homebrew/cmd/doctor.rb | 4 ++-- Library/Homebrew/diagnostic.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 85551db322..25fe3d7201 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -38,7 +38,7 @@ module Homebrew checks = Diagnostic::Checks.new(verbose: args.verbose?) if args.list_checks? - puts checks.all.sort + puts checks.all return end @@ -47,7 +47,7 @@ module Homebrew check_for_broken_symlinks check_missing_deps ] - methods = (checks.all.sort - slow_checks) + slow_checks + methods = (checks.all - slow_checks) + slow_checks methods -= checks.cask_checks if Cask::Caskroom.casks.blank? else methods = args.named diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index d794d8cb77..c7583e0bbe 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1043,7 +1043,7 @@ module Homebrew end def all - methods.map(&:to_s).grep(/^check_/) + methods.map(&:to_s).grep(/^check_/).sort end def cask_checks