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).
This commit is contained in:
Caleb Xu 2020-10-19 12:02:59 -04:00
parent 7a3c43e3cd
commit 534f0e61e3

View File

@ -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