Apply suggestions from code review

Code review changes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Lionell Loh Jian An 2020-07-09 16:28:00 +08:00 committed by GitHub
parent 22ef3d5294
commit bdb64aa178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1107,7 +1107,7 @@ class FormulaInstaller
end end
def forbidden_license_check def forbidden_license_check
forbidden_licenses = (Homebrew::EnvConfig.forbidden_licenses || "").split(" ") forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s.split(" ")
return if forbidden_licenses.blank? return if forbidden_licenses.blank?
if forbidden_licenses.include? formula.license if forbidden_licenses.include? formula.license