dev-cmd/audit: don't error out if no license is detected by GitHub

This commit is contained in:
Dawid Dziurla 2020-07-04 13:12:30 +02:00
parent 505c1e7240
commit 8f59a5749e
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -341,7 +341,7 @@ module Homebrew
return if user.blank?
github_license = GitHub.get_repo_license(user, repo)
return if github_license && (github_license == formula.license)
return if github_license && [formula.license, "NOASSERTION"].include?(github_license)
problem "License mismatch - GitHub license is: #{github_license}, "\
"but Formulae license states: #{formula.license}."