Fix tests
`runtime_dependencies` is sometimes `nil`.
This commit is contained in:
parent
91e425f7dd
commit
96f0441178
@ -130,7 +130,7 @@ class Keg
|
||||
end
|
||||
|
||||
def openjdk_dep_name_if_applicable
|
||||
runtime_dependencies.find do |dep|
|
||||
runtime_dependencies&.find do |dep|
|
||||
dep["full_name"].match? Version.formula_optionally_versioned_regex(:openjdk)
|
||||
end&.fetch("full_name")
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user