Skip to content

Commit

Permalink
audit: remove redundant check
Browse files Browse the repository at this point in the history
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
  • Loading branch information
dawidd6 and Rylan12 committed Aug 19, 2020
1 parent 2689213 commit 1f7df48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def audit_license

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

Expand Down

0 comments on commit 1f7df48

Please sign in to comment.