audit: remove redundant check

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Dawid Dziurla 2020-08-19 23:47:20 +02:00 committed by GitHub
parent 2689213f92
commit 1f7df48812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ module Homebrew
github_license = GitHub.get_repo_license(user, repo)
return unless github_license
return if github_license && (licenses + ["NOASSERTION"]).include?(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