build-support/make-pkgconfigitem: remove throwIfNot usage

This commit is contained in:
Eman Resu
2026-05-26 14:25:17 -04:00
parent 317fbe5e1a
commit d9fbb836ad

View File

@@ -34,7 +34,8 @@ let
keywordsSection =
let
mustBeAList = attr: attrName: lib.throwIfNot (lib.isList attr) "'${attrName}' must be a list" attr;
mustBeAList =
attr: attrName: if !(lib.isList attr) then throw "'${attrName}' must be a list" else attr;
in
{
"Name" = name;