From ae3eb5bb21cd2fce32f21c7f1ef16081db3f0abd Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Fri, 9 Jun 2017 15:36:25 +0300 Subject: [PATCH] fix hasChilds --- Swift/Class.swift.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Swift/Class.swift.twig b/Swift/Class.swift.twig index 111c401..9eb4cbf 100644 --- a/Swift/Class.swift.twig +++ b/Swift/Class.swift.twig @@ -6,7 +6,7 @@ import ObjectMapper /// {{ description }} -{% if hasChilds is empty -%}final {% endif %}class {{ className }}: {{ parentClassName }} { +{% if (not hasChilds) -%}final {% endif %}class {{ className }}: {{ parentClassName }} { {% include 'Class.fields.swig' with { fields: fields } %} {% include 'Class.date-transformers.swig' with { fields: fields } %}