repair Diagnostic::Checks#all

This commit is contained in:
hyuraku 2021-06-22 20:57:09 +09:00
parent 09f7bc27a9
commit af68ceff88
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ module Homebrew
checks = Diagnostic::Checks.new(verbose: args.verbose?) checks = Diagnostic::Checks.new(verbose: args.verbose?)
if args.list_checks? if args.list_checks?
puts checks.all.sort puts checks.all
return return
end end
@ -47,7 +47,7 @@ module Homebrew
check_for_broken_symlinks check_for_broken_symlinks
check_missing_deps 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? methods -= checks.cask_checks if Cask::Caskroom.casks.blank?
else else
methods = args.named methods = args.named

View File

@ -1043,7 +1043,7 @@ module Homebrew
end end
def all def all
methods.map(&:to_s).grep(/^check_/) methods.map(&:to_s).grep(/^check_/).sort
end end
def cask_checks def cask_checks