From 70791a75fa15c32fc355faf3eb61291a78739601 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 24 Mar 2021 13:57:33 +0000 Subject: [PATCH] fix bug in helpers --- plugins/helpers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/helpers.nix b/plugins/helpers.nix index 950e2b0b..9764b4d4 100644 --- a/plugins/helpers.nix +++ b/plugins/helpers.nix @@ -17,7 +17,7 @@ rec { (n: v: if head (stringToCharacters n) == "@" then toLuaObject v else "[${toLuaObject n}] = " + (toLuaObject v)) - (filterAttrs (n: v: !isNull v || v == {}) args))) + "}" + (filterAttrs (n: v: !isNull v && toLuaObject v != "{}") args))) + "}" else if builtins.isList args then "{" + concatMapStringsSep "," toLuaObject args + "}" else if builtins.isString args then