Skip to content

Commit

Permalink
helpers: fix toLuaObject ignoring empty objects (nix-community#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
pta2002 authored Feb 28, 2023
1 parent 0620ffc commit 9286738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with lib; rec {
if head (stringToCharacters n) == "@"
then toLuaObject v
else "[${toLuaObject n}] = " + (toLuaObject v))
(filterAttrs (n: v: !isNull v && toLuaObject v != "{}") args)))
(filterAttrs (n: v: !isNull v) args)))
+ "}"
else if builtins.isList args
then "{" + concatMapStringsSep "," toLuaObject args + "}"
Expand Down

0 comments on commit 9286738

Please sign in to comment.