Apply suggestions from code review

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Lionell Loh Jian An 2020-07-28 21:01:09 +08:00 committed by Lionell
parent 26c786fc0a
commit 67a974455b

View File

@ -1123,7 +1123,7 @@ class FormulaInstaller
next if @ignore_deps
dep_f = dep.to_formula
next unless dep_f.license.all? { |lic| forbidden_licenses.include? lic }
next unless dep_f.license.all? { |license| forbidden_licenses.include? license }
raise CannotInstallFormulaError, <<~EOS
The installation of #{formula.name} has a dependency on #{dep.name} where all its licenses are forbidden: #{dep_f.license}.