Update comments

This commit is contained in:
Eric Bailey
2025-10-14 10:08:07 -05:00
parent 8d4ce43301
commit b928e27c18
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -135,10 +135,10 @@ export function sortAndAnnotateThreadItems(
} else if (AppBskyUnspeccedDefs.isThreadItemPost(item.value)) {
if (parentMetadata) {
/*
* Set this value before incrementing the parent's repliesSeenCounter
* Set this value before incrementing the `repliesIndexCounter`, since
* `repliesIndexCounter` is 1-indexed and `replyIndex` is 0-indexed.
*/
metadata!.replyIndex = parentMetadata.repliesIndexCounter
// Increment the parent's repliesIndexCounter
parentMetadata.repliesIndexCounter += 1
}
@@ -193,7 +193,7 @@ export function sortAndAnnotateThreadItems(
storeTraversalMetadata(metadatas, childMetadata)
if (childParentMetadata) {
/*
* Set this value before incrementing the parent's
* Set this value before incrementing the
* `repliesIndexCounter`, since `repliesIndexCounter` is
* 1-indexed and `replyIndex` is 0-indexed.
*/