Skip to content

Commit 1efc3fa

Browse files
committed
style(json-crdt): 💄 run Prettier
1 parent 7525885 commit 1efc3fa

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/json-crdt/model/Model.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,18 @@ export class Model<RootJsonNode extends JsonNode = JsonNode> implements Printabl
347347
this.index.forEach((item) => nodes.push(item.v));
348348
return (
349349
`Index (${nodes.length} nodes)` +
350-
(nodes.length ? printTree(
351-
tab,
352-
nodes.map((node) => (tab) => `${node.constructor.name} ${toDisplayString(node.id)}`),
353-
) : '')
350+
(nodes.length
351+
? printTree(
352+
tab,
353+
nodes.map((node) => (tab) => `${node.constructor.name} ${toDisplayString(node.id)}`),
354+
)
355+
: '')
354356
);
355357
},
356358
nl,
357359
// (tab) => `View ${toTree(this.view(), tab)}`,
358-
(tab) => `View${printTree(tab, [(tab) => String(JSON.stringify(this.view(), null, 2)).replace(/\n/g, '\n' + tab)])}`,
360+
(tab) =>
361+
`View${printTree(tab, [(tab) => String(JSON.stringify(this.view(), null, 2)).replace(/\n/g, '\n' + tab)])}`,
359362
nl,
360363
(tab) => this.clock.toString(tab),
361364
hasExtensions ? nl : null,

0 commit comments

Comments
 (0)