Skip to content

Commit e475470

Browse files
committed
formatting
Signed-off-by: Louis Mandel <[email protected]>
1 parent 35a0c4b commit e475470

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pdl-live-react/src/helpers.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,13 @@ function getValue<T>(expr: ExpressionT<T>) {
340340

341341
export function extractModel(block: ModelBlock): string {
342342
return match(block)
343-
.with({ model: P._ }, (block) => stringify(getValue(block.model)))
344-
.with({processor: {model: P._}}, (block) => stringify(getValue(block.processor.model)))
345-
.with({processor: {type: P._}}, (block) => stringify(getValue(block.processor.type)))
346-
.with({processor: P._}, (block) => stringify(getValue(block.processor)))
347-
.exhaustive()
343+
.with({ model: P._ }, (block) => stringify(getValue(block.model)))
344+
.with({ processor: { model: P._ } }, (block) =>
345+
stringify(getValue(block.processor.model)),
346+
)
347+
.with({ processor: { type: P._ } }, (block) =>
348+
stringify(getValue(block.processor.type)),
349+
)
350+
.with({ processor: P._ }, (block) => stringify(getValue(block.processor)))
351+
.exhaustive()
348352
}

pdl-live-react/src/pdl_ast_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function map_block_children(
109109
parameters,
110110
}
111111
})
112-
.with({ kind: "model", }, (block) => {
112+
.with({ kind: "model" }, (block) => {
113113
const input = block.input ? f_block(block.input) : undefined
114114
const parameters = block.parameters ? f_expr(block.parameters) : undefined
115115
return {

0 commit comments

Comments
 (0)