Merge pull request #11579 from hyuraku/repair_Diagnostic_Checks_all

repair Diagnostic::Checks#all
This commit is contained in:
Mike McQuaid 2021-06-22 15:04:39 +01:00 committed by GitHub
commit f04e5d6700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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