diff --git a/src/json-crdt-extensions/peritext/slice/PersistedSlice.ts b/src/json-crdt-extensions/peritext/slice/PersistedSlice.ts index 4f7a1ac4e2..66fa218fb4 100644 --- a/src/json-crdt-extensions/peritext/slice/PersistedSlice.ts +++ b/src/json-crdt-extensions/peritext/slice/PersistedSlice.ts @@ -74,7 +74,7 @@ export class PersistedSlice extends Range implements MutableSlice public update(params: SliceUpdateParams): void { let updateHeader = false; - let {start, end} = this; + const {start, end} = this; const changes: [number, unknown][] = []; if (params.behavior !== undefined) { this.behavior = params.behavior; diff --git a/src/json-crdt-extensions/peritext/slice/__tests__/PersistedSlice.spec.ts b/src/json-crdt-extensions/peritext/slice/__tests__/PersistedSlice.spec.ts index 7d595dd708..08d75e9dad 100644 --- a/src/json-crdt-extensions/peritext/slice/__tests__/PersistedSlice.spec.ts +++ b/src/json-crdt-extensions/peritext/slice/__tests__/PersistedSlice.spec.ts @@ -73,4 +73,3 @@ describe('.del() and .isDel()', () => { expect(slice3).toBe(undefined); }); }); - diff --git a/src/json-crdt-extensions/peritext/slice/__tests__/Slices.spec.ts b/src/json-crdt-extensions/peritext/slice/__tests__/Slices.spec.ts index 7144ef64c1..f2f29c0e6a 100644 --- a/src/json-crdt-extensions/peritext/slice/__tests__/Slices.spec.ts +++ b/src/json-crdt-extensions/peritext/slice/__tests__/Slices.spec.ts @@ -154,7 +154,7 @@ describe('.delSlices()', () => { }); describe('.refresh()', () => { - const testSliceUpdate = (name: string, update: (controls: {range: Range, slice: PersistedSlice}) => void) => { + const testSliceUpdate = (name: string, update: (controls: {range: Range; slice: PersistedSlice}) => void) => { test('changes hash on: ' + name, () => { const {peritext, encodeAndDecode} = setup(); const range = peritext.rangeAt(6, 5);