formula_installer: fix type for fetch_dependency

This receives a Dependency, not a Formula.
This commit is contained in:
Jonathan Chang 2020-11-20 21:51:07 +11:00
parent 5760415e27
commit ce67dc3e63

View File

@ -654,7 +654,7 @@ class FormulaInstaller
@show_header = true unless deps.empty?
end
sig { params(dep: Formula).void }
sig { params(dep: Dependency).void }
def fetch_dependency(dep)
df = dep.to_formula
fi = FormulaInstaller.new(
@ -675,7 +675,7 @@ class FormulaInstaller
fi.fetch
end
sig { params(dep: Formula, inherited_options: Options).void }
sig { params(dep: Dependency, inherited_options: Options).void }
def install_dependency(dep, inherited_options)
df = dep.to_formula
tab = Tab.for_formula(df)