Skip to content

Commit d85b8c0

Browse files
committed
style(json-crdt-extensions): 💄 run Prettier
1 parent f00f457 commit d85b8c0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/json-crdt-extensions/peritext/editor/Editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class Editor<T = string> {
116116
return () => {
117117
if (!point) return;
118118
const char = step > 0 ? point.rightChar() : point.leftChar();
119-
if (!char) return point = undefined;
119+
if (!char) return (point = undefined);
120120
const end = point.move(step);
121121
if (end) point = undefined;
122122
return char;

src/json-crdt-extensions/peritext/rga/Point.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export class Point<T = string> implements Pick<Stateful, 'refresh'>, Printable {
419419
/**
420420
* Moves point past given number of visible characters. Accepts positive
421421
* and negative distances.
422-
*
422+
*
423423
* @returns Returns `true` if the absolute end of the string is reached.
424424
*/
425425
public move(skip: number): boolean {
@@ -431,8 +431,7 @@ export class Point<T = string> implements Pick<Stateful, 'refresh'>, Printable {
431431
if (!nextId) {
432432
this.refAbsEnd();
433433
return true;
434-
}
435-
else {
434+
} else {
436435
this.id = nextId;
437436
if (anchor !== Anchor.After) this.refBefore();
438437
}

0 commit comments

Comments
 (0)