mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
build-support/make-pkgconfigitem: remove throwIfNot usage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user