Merge pull request #19373 from gromgit/diagnostic/fix-call

diagnostic: fix call to missing_dependencies
This commit is contained in:
Mike McQuaid 2025-02-25 11:25:52 +00:00 committed by GitHub
commit b4dbbf19a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,10 @@ require "system_command"
module Homebrew
# Module containing diagnostic checks.
module Diagnostic
def self.missing_deps(formulae, hide = nil)
def self.missing_deps(formulae, hide = [])
missing = {}
formulae.each do |f|
missing_dependencies = f.missing_dependencies(hide:)
missing_dependencies = f.missing_dependencies(hide: hide)
next if missing_dependencies.empty?
yield f.full_name, missing_dependencies if block_given?