Skip to content

Commit f240bdd

Browse files
committed
style: 💄 run Prettier
1 parent c050824 commit f240bdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/web3/adl/feed-crdt/Feed.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ export class Feed implements types.FeedApi, SyncStore<types.FeedOpInsert[]> {
192192
curr = frames[i];
193193
}
194194
let existingCurr: FeedFrame | null = this.head;
195-
while (existingCurr && existingCurr.seq() > curr.seq())
196-
existingCurr = existingCurr.prev;
197-
if (existingCurr) curr.prev = existingCurr.prev; else this.tail = curr;
195+
while (existingCurr && existingCurr.seq() > curr.seq()) existingCurr = existingCurr.prev;
196+
if (existingCurr) curr.prev = existingCurr.prev;
197+
else this.tail = curr;
198198
this.head = head;
199199
this.onChange.emit();
200200
}
@@ -238,7 +238,7 @@ export class Feed implements types.FeedApi, SyncStore<types.FeedOpInsert[]> {
238238
const prevCidDto = tail.data[0];
239239
if (!prevCidDto) return;
240240
const cid = Cid.fromBinaryV1(prevCidDto);
241-
const frame = this.tail?.prev ?? await FeedFrame.read(cid, this.deps.cas);
241+
const frame = this.tail?.prev ?? (await FeedFrame.read(cid, this.deps.cas));
242242
tail.prev = frame;
243243
this.tail = frame;
244244
this.ingestFrameData(frame);

0 commit comments

Comments
 (0)