Skip to content
Snippets Groups Projects
Unverified Commit af1e6001 authored by Dawid Dziurla's avatar Dawid Dziurla Committed by GitHub
Browse files

Merge pull request #8402 from dawidd6/no-gh-license

audit: return if no github license were found
parents b623d87f 1f7df488
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,8 @@ module Homebrew
return if user.blank?
github_license = GitHub.get_repo_license(user, repo)
return if github_license && (licenses + ["NOASSERTION"]).include?(github_license)
return unless github_license
return if (licenses + ["NOASSERTION"]).include?(github_license)
return if PERMITTED_LICENSE_MISMATCHES[github_license]&.any? { |license| licenses.include? license }
return if PERMITTED_FORMULA_LICENSE_MISMATCHES[formula.name] == formula.version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment