Skip to content

Commit e247c55

Browse files
committed
Revert "Fix CHECK constraint closing parenthesis alignment"
This reverts commit 9aaa60d.
1 parent 7a9eca9 commit e247c55

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/deparser/src/deparser.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,10 +2631,7 @@ export class Deparser implements DeparserVisitor {
26312631
if (this.formatter.isPretty()) {
26322632
const checkExpr = this.visit(node.raw_expr, context);
26332633
if (checkExpr.includes('\n')) {
2634-
const indentedExpr = checkExpr.split('\n').map(line =>
2635-
' ' + line
2636-
).join('\n');
2637-
output.push('(\n' + indentedExpr + '\n)');
2634+
output.push('(\n' + this.formatter.indent(checkExpr) + '\n)');
26382635
} else {
26392636
output.push(`(${checkExpr})`);
26402637
}

0 commit comments

Comments
 (0)