Remove redundant check

This commit is contained in:
Eric Bailey
2025-10-14 21:09:14 -05:00
parent 92f58c8723
commit cff79b80ce
@@ -280,7 +280,6 @@ export function sortAndAnnotateThreadItems(
* item). * item).
*/ */
const isImplicitlyLastSibling = const isImplicitlyLastSibling =
nextItem === undefined ||
metadata.nextItemDepth === undefined || metadata.nextItemDepth === undefined ||
metadata.nextItemDepth < metadata.depth metadata.nextItemDepth < metadata.depth
@@ -297,7 +296,6 @@ export function sortAndAnnotateThreadItems(
* of this item) * of this item)
*/ */
metadata.isLastChild = metadata.isLastChild =
nextItem === undefined ||
metadata.nextItemDepth === undefined || metadata.nextItemDepth === undefined ||
metadata.nextItemDepth <= metadata.depth metadata.nextItemDepth <= metadata.depth