lib.licenses: use && for exception licenses

Seems preferable to iterating over a two-element list.
licenseType.exception is only used by lib.licenses.WITH, which I don't
see any usage of in tree - but thought I might as well.
This commit is contained in:
Eman Resu
2026-04-28 14:20:37 -04:00
parent 64e42fb8b1
commit 1883329515

View File

@@ -11,10 +11,7 @@ let
else
throw "Unknown license operator"
else if license.licenseType == "exception" then
AND evaluateSubProperty [
license.license
license.exception
]
evaluateSubProperty license.license && evaluateSubProperty license.exception
else if license.licenseType == "plus" then
evaluateSubProperty license.license
else