fix(generator): `0` is not a nullish/falsy value
This commit is contained in:
parent
49ae0bdc91
commit
1dd2f741e6
|
@ -9,16 +9,16 @@ local tmpl = [[
|
|||
-- Auto generated file (Do not manually edit this file!)
|
||||
|
||||
local record $(module.record_name)
|
||||
# if #module.signals then
|
||||
# if #module.signals ~= 0 then
|
||||
$(snippets.indent(snippets.render_enum("Signal", module.signals)))
|
||||
|
||||
# end -- /signals
|
||||
# if #module.methods then
|
||||
# if #module.methods ~= 0 then
|
||||
-- Object methods
|
||||
$(snippets.indent(snippets.render_record_functions(module.methods)))
|
||||
|
||||
# end -- /methods
|
||||
# if #module.properties then
|
||||
# if #module.properties ~= 0 then
|
||||
-- Object properties
|
||||
$(snippets.indent(snippets.render_record_properties(module.properties)))
|
||||
# end -- /properties
|
||||
|
|
Loading…
Reference in New Issue