Skip to content

Commit

Permalink
style(json-crdt-patch): 💄 run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jul 28, 2023
1 parent d2e7bcc commit 862566c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/json-crdt-patch/__demos__/PatchBuilder-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const json = {
bools: [true, false],
};

builder.root(
builder.json(json),
);
builder.root(builder.json(json));

const patch = builder.flush();
console.log(patch.toString());
Expand Down
2 changes: 1 addition & 1 deletion src/json-crdt-patch/__demos__/PatchBuilder-konst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const builder = new PatchBuilder(clock);
builder.json({
bools: konst([true, false]),
}),
console.log(builder.patch + '');
console.log(builder.patch + '');

// Patch 123.456!3
// ├─ "obj" 123.456
Expand Down
4 changes: 1 addition & 3 deletions src/json-crdt-patch/__demos__/PatchBuilder-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ builder.insStr(stringId, stringId, 'bar');
const objectId = builder.obj();

// Set "foo" property of the object to "bar".
builder.setKeys(objectId, [
['foo', stringId],
]);
builder.setKeys(objectId, [['foo', stringId]]);

// Set the document root LWW-Register value to the object.
builder.root(objectId);
Expand Down

0 comments on commit 862566c

Please sign in to comment.