change deps.to_formula.runtime_dependencies to variable length arguments

This commit is contained in:
hyuraku 2022-02-16 18:59:58 +09:00
parent 8aa4cfb155
commit 9f50a95203

View File

@ -18,7 +18,7 @@ class CaskDependent
end
def runtime_dependencies
deps.flat_map { |dep| [dep, dep.to_formula.runtime_dependencies] }.uniq
deps.flat_map { |dep| [dep, *dep.to_formula.runtime_dependencies] }.uniq
end
def deps