diff --git a/lib/lua.nix b/lib/lua.nix index c4685bb..749e9a3 100644 --- a/lib/lua.nix +++ b/lib/lua.nix @@ -79,10 +79,7 @@ in rec { then toLuaObject v else "[${toLuaObject n}] = " + (toLuaObject v)) (filterAttrs - ( - _: v: - (v != null) && (toLuaObject v != "{}") - ) + (_: v: v != null) args))) + "}" else if isList args