fix(generator): `0` is not a nullish/falsy value
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details

This commit is contained in:
Aire-One 2022-10-31 19:20:16 +01:00
parent 49ae0bdc91
commit 1dd2f741e6
1 changed files with 3 additions and 3 deletions

View File

@ -9,16 +9,16 @@ local tmpl = [[
-- Auto generated file (Do not manually edit this file!) -- Auto generated file (Do not manually edit this file!)
local record $(module.record_name) local record $(module.record_name)
# if #module.signals then # if #module.signals ~= 0 then
$(snippets.indent(snippets.render_enum("Signal", module.signals))) $(snippets.indent(snippets.render_enum("Signal", module.signals)))
# end -- /signals # end -- /signals
# if #module.methods then # if #module.methods ~= 0 then
-- Object methods -- Object methods
$(snippets.indent(snippets.render_record_functions(module.methods))) $(snippets.indent(snippets.render_record_functions(module.methods)))
# end -- /methods # end -- /methods
# if #module.properties then # if #module.properties ~= 0 then
-- Object properties -- Object properties
$(snippets.indent(snippets.render_record_properties(module.properties))) $(snippets.indent(snippets.render_record_properties(module.properties)))
# end -- /properties # end -- /properties