1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

Fix empty list conversion to lua

This commit is contained in:
Étienne Fildadut 2021-02-18 17:37:49 +01:00
parent 14ba34f8fd
commit 861330475e
2 changed files with 6 additions and 6 deletions

View file

@ -29,7 +29,7 @@ common = {
return nil, ("no formatter for type %q"):format(val.type)
end
end,
-- lua value: if success
-- lua value: if success (may be nil!)
-- * nil, err: if error
to_lua = function(val)
if atypes[val.type] and atypes[val.type].to_lua then