Skip to content

Commit 2524c81

Browse files
committed
style: 💄 run Prettier
1 parent 6b55b3a commit 2524c81

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/json-crdt/__tests__/fuzzer/JsonCrdtFuzzer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export class JsonCrdtFuzzer {
5151
const session = new SessionLogical(this, concurrency);
5252
session.generateEdits();
5353
session.synchronize();
54-
if (this.opts.collectPatches)
55-
for (const patches of session.patches) this.patches.push(...patches);
54+
if (this.opts.collectPatches) for (const patches of session.patches) this.patches.push(...patches);
5655
return session;
5756
}
5857
}

src/json-crdt/__tests__/fuzzer/generate-trace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ for (const patch of fuzzer.patches) {
3131
const model = Model.withLogicalClock();
3232
model.applyBatch(patches);
3333
const cborEncoder = new CborEncoder(new Writer());
34-
fs.writeFileSync(__dirname + '/trace.cbor', cborEncoder.encode(patches.map(p => p.toBinary())));
34+
fs.writeFileSync(__dirname + '/trace.cbor', cborEncoder.encode(patches.map((p) => p.toBinary())));
3535

3636
// console.log(Buffer.from(jsonEncoder.encode(encoded)).toString());
3737
console.log(model.view());

0 commit comments

Comments
 (0)