diff --git a/src/index.ts b/src/index.ts index 955e1c7..dfbafcc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -357,7 +357,7 @@ function ${cls.name}${ }); } - const staticFields = (cls.static_properties?.length? `\n${cls.static_properties.map(field => `${cls.name}.${field.name} = ${field.value}`).join("\n")}` : "") ?? ""; + const staticFields = cls.static_properties?.length ? `\n${cls.static_properties.map(field => `${cls.name}.${field.name} = ${field.value}`).join("\n")}` : ""; let operators = ""; if (cls.operators !== undefined) {