diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 13:54:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 13:54:42 -0400 |
| commit | 565527c9a6c5aa0161f421066ac2e07357b34571 (patch) | |
| tree | 031b8bfa768d27e258ac32d6248d33724087071e /src | |
| parent | 16abb9016866782840127240279c42122a60d5d8 (diff) | |
Avoid inline ifs
Diffstat (limited to 'src')
| -rw-r--r-- | src/formatter/formatter.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index a120b9de..5e34960f 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -430,8 +430,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { } /*multiline*/ case If: { DeclareMatch(if_, ast, If); - if (inlined_fits && if_->else_body == NULL) return inlined; - Text_t code = Texts("if ", fmt(if_->condition, comments, indent), "\n", indent, single_indent, fmt(if_->body, comments, Texts(indent, single_indent))); if (if_->else_body) { |
