From 1dd2f741e6d7b7febcfce0171ac468d11e30b098 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Mon, 31 Oct 2022 19:20:16 +0100 Subject: [PATCH] fix(generator): `0` is not a nullish/falsy value --- src/awesomewm.d.tl/generator/teal_type_definitions.tl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/awesomewm.d.tl/generator/teal_type_definitions.tl b/src/awesomewm.d.tl/generator/teal_type_definitions.tl index 7fa2985..6f3d899 100644 --- a/src/awesomewm.d.tl/generator/teal_type_definitions.tl +++ b/src/awesomewm.d.tl/generator/teal_type_definitions.tl @@ -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