From 534f0e61e342b509fd7a95871e70a182de87ddde Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Mon, 19 Oct 2020 12:02:59 -0400 Subject: [PATCH] shared_audits: fix conditional in Bitbucket notability check This check currently returns an error for repositories that are notable enough (and passes on repositories that are not notable enough). --- Library/Homebrew/utils/shared_audits.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/shared_audits.rb b/Library/Homebrew/utils/shared_audits.rb index c862feccbe..8ed5a3d5b5 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -168,7 +168,7 @@ module SharedAudits watcher_metadata = JSON.parse(watcher_out) return if watcher_metadata.nil? - return if (forks_metadata["size"] < 30) && (watcher_metadata["size"] < 75) + return if forks_metadata["size"] >= 30 || watcher_metadata["size"] >= 75 "Bitbucket repository not notable enough (<30 forks and <75 watchers)" end