lib: avoid filtering null values to be used as nil

This commit is contained in:
Frothy 2024-04-26 20:25:44 -04:00 committed by NotAShelf
parent 3bd0243744
commit 852c862f05
No known key found for this signature in database
GPG Key ID: 02D1DD3FA08B6B29
1 changed files with 1 additions and 2 deletions

View File

@ -77,8 +77,7 @@ in rec {
else "[${toLuaObject n}] = " + (toLuaObject v)) else "[${toLuaObject n}] = " + (toLuaObject v))
(filterAttrs (filterAttrs
( (
_: v: _: v: (toLuaObject v != "{}")
(v != null) && (toLuaObject v != "{}")
) )
args))) args)))
+ "}" + "}"