File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export class File implements Printable {
7676 this . log . push ( patch ) ;
7777 }
7878
79- public sync ( ) : ( ( ) => void ) {
79+ public sync ( ) : ( ) => void {
8080 const { model, log} = this ;
8181 const api = model . api ;
8282 const drain = ( ) => {
Original file line number Diff line number Diff line change @@ -28,14 +28,13 @@ export class PatchLog implements Printable {
2828
2929 public replayToEnd ( ) : Model {
3030 const clone = this . start . clone ( ) ;
31- for ( let node = first ( this . patches . root ) ; node ; node = next ( node ) )
32- clone . applyPatch ( node . v ) ;
31+ for ( let node = first ( this . patches . root ) ; node ; node = next ( node ) ) clone . applyPatch ( node . v ) ;
3332 return clone ;
3433 }
3534
3635 public replayTo ( ts : ITimestampStruct ) : Model {
3736 const clone = this . start . clone ( ) ;
38- for ( let node = first ( this . patches . root ) ; node && ( compare ( ts , node . k ) >= 0 ) ; node = next ( node ) )
37+ for ( let node = first ( this . patches . root ) ; node && compare ( ts , node . k ) >= 0 ; node = next ( node ) )
3938 clone . applyPatch ( node . v ) ;
4039 return clone ;
4140 }
You can’t perform that action at this time.
0 commit comments