Skip to content

Commit

Permalink
Tweak formatting and remove redundant fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpius authored Apr 22, 2024
1 parent 5b581ca commit 75bf0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 75bf0ce

Please sign in to comment.