From 75bf0ceb7bd1a36690181a4b17d77cbe1a0d254f Mon Sep 17 00:00:00 2001 From: Derpius <49565664+Derpius@users.noreply.github.com> Date: Mon, 22 Apr 2024 22:46:05 +0100 Subject: [PATCH] Tweak formatting and remove redundant fallback --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {