Browse Source

Remove redundant call to `tryMoveToParent()`

master
buttercat1791 10 months ago
parent
commit
f48f1f9467
  1. 1
      src/lib/data_structures/publication_tree.ts

1
src/lib/data_structures/publication_tree.ts

@ -348,7 +348,6 @@ export class PublicationTree implements AsyncIterable<NDKEvent | null> { @@ -348,7 +348,6 @@ export class PublicationTree implements AsyncIterable<NDKEvent | null> {
const event = await this.getEvent(this.#cursor.target!.address);
return { done: false, value: event };
}
this.#cursor.tryMoveToParent();
} while (this.#cursor.tryMoveToParent());
// If we get to this point, we're at the root node (can't move up any more).

Loading…
Cancel
Save