Merge pull request #11579 from hyuraku/repair_Diagnostic_Checks_all
repair Diagnostic::Checks#all
This commit is contained in:
commit
f04e5d6700
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user