lib: fix crash on non-attrset arg

This commit is contained in:
Ching Pei Yang 2024-04-27 16:01:37 +02:00
parent c220da2af9
commit 0c4f7a544d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ in rec {
# Convert a list of lua expressions to a lua table. The difference to listToLuaTable is that the elements here are expected to be lua expressions already, whereas listToLuaTable converts from nix types to lua first
luaTable = items: ''{${concatStringsSep "," items}}'';
isLuaInline = {_type ? null, ...}: _type == "lua-inline";
isLuaInline = object: (object._type or null) == "lua-inline";
toLuaObject = args:
if isAttrs args