Compare commits
2 Commits
434810e0a5
...
414e7bc12f
Author | SHA1 | Date |
---|---|---|
Ching Pei Yang | 414e7bc12f | |
Ching Pei Yang | 8aa3a23e97 |
|
@ -65,6 +65,7 @@ in rec {
|
||||||
then
|
then
|
||||||
if isLuaInline args
|
if isLuaInline args
|
||||||
then args.expr
|
then args.expr
|
||||||
|
# if nobody is using this we should get rid of this
|
||||||
else if hasAttr "__empty" args
|
else if hasAttr "__empty" args
|
||||||
then "{ }"
|
then "{ }"
|
||||||
else
|
else
|
||||||
|
@ -76,10 +77,7 @@ in rec {
|
||||||
then toLuaObject v
|
then toLuaObject v
|
||||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||||
(filterAttrs
|
(filterAttrs
|
||||||
(
|
(_: v: v != null)
|
||||||
_: v:
|
|
||||||
(v != null) && (toLuaObject v != "{}")
|
|
||||||
)
|
|
||||||
args)))
|
args)))
|
||||||
+ "}"
|
+ "}"
|
||||||
else if isList args
|
else if isList args
|
||||||
|
|
Loading…
Reference in New Issue