Revert "Merge pull request #916 from jebeaudet/spdx-support"
This reverts commit5a5d4df8ad, reversing changes made to67d4f4bd7a.
This commit is contained in:
+2
-8
@@ -88,20 +88,14 @@ export async function getInvalidLicenseChanges(
|
||||
try {
|
||||
if (allow !== undefined) {
|
||||
if (spdx.isValid(license)) {
|
||||
let found = false
|
||||
for (const allowedLicense of allow) {
|
||||
found ||= spdx.satisfies(allowedLicense, license)
|
||||
}
|
||||
const found = spdx.satisfiesAny(license, allow)
|
||||
validityCache.set(license, found)
|
||||
} else {
|
||||
invalidLicenseChanges.unresolved.push(change)
|
||||
}
|
||||
} else if (deny !== undefined) {
|
||||
if (spdx.isValid(license)) {
|
||||
let found = false
|
||||
for (const deniedLicense of deny) {
|
||||
found ||= spdx.satisfies(deniedLicense, license)
|
||||
}
|
||||
const found = spdx.satisfiesAny(license, deny)
|
||||
validityCache.set(license, !found)
|
||||
} else {
|
||||
invalidLicenseChanges.unresolved.push(change)
|
||||
|
||||
Reference in New Issue
Block a user