Remove obsolete type guard on toLua function.

This commit is contained in:
Kevin Baensch 2024-05-18 11:17:32 +02:00
parent 421e9cf4fa
commit b83e5c9de5
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -127,9 +127,6 @@ let
# can be: null, bool, string, path, int, float, list, set or lambda
type = builtins.typeOf value;
in
assert
!(builtins.isFunction type)
|| builtins.throw "Nix functions (${type}) have no correspoinding Lua representation.";
{
"null" = nullToLua;
"bool" = boolToLua;