From 40b985c066227b5237d6506e070cc5dc91ff1b90 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sat, 17 Feb 2024 16:44:41 +0100 Subject: [PATCH] fix: bug where toLuaObject converts null to "" --- lib/lua.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lua.nix b/lib/lua.nix index e37db7a..4bd4930 100644 --- a/lib/lua.nix +++ b/lib/lua.nix @@ -82,7 +82,7 @@ in rec { then "${toString args}" else if builtins.isInt args then "${toString args}" - else if (args != null) + else if (args == null) then "nil" else ""; }