Skip to content

Commit 04c20e3

Browse files
committed
refactor: - remove lines that are not required by the current implementation
1 parent 690ed10 commit 04c20e3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Renderer/HtmlQueryResultsRenderer.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,14 @@ export class HtmlQueryResultsRenderer {
264264
} else {
265265
await this.addListItem(listItem, listItemIndex, listItem.children);
266266
}
267+
268+
// The children of this item will be added thanks to recursion and the fact that we always render all children currently
267269
this.addedListItems.add(listItem);
268270

269-
for (const childTask of listItem.children) {
270-
this.addedListItems.add(childTask);
271-
}
271+
// We think this code may be needed in future, we have been unable to write a failing test for it
272+
// for (const childTask of listItem.children) {
273+
// this.addedListItems.add(childTask);
274+
// }
272275
}
273276
}
274277

0 commit comments

Comments
 (0)