Skip to content

Commit

Permalink
Merge pull request #8402 from dawidd6/no-gh-license
Browse files Browse the repository at this point in the history
audit: return if no github license were found
  • Loading branch information
dawidd6 committed Aug 19, 2020
2 parents b623d87 + 1f7df48 commit af1e600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def audit_license
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

Expand Down

0 comments on commit af1e600

Please sign in to comment.