File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/json-crdt/__tests__/fuzzer Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ for (const patch of fuzzer.patches) {
3131const model = Model . withLogicalClock ( ) ;
3232model . applyBatch ( patches ) ;
3333const 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());
3737console . log ( model . view ( ) ) ;
You can’t perform that action at this time.
0 commit comments