Skip to content

Commit 244ba7b

Browse files
committed
refactor: . rename variable
1 parent d22ad40 commit 244ba7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Renderer/QueryResultsRenderer.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,19 @@ export class QueryResultsRenderer {
250250

251251
private willBeRenderedLater(task: ListItem, renderedTasks: Set<ListItem>, tasks: ListItem[]) {
252252
// Try to find the closest parent that is a task
253-
let closestParent = task.parent;
254-
while (closestParent !== null && !(closestParent instanceof Task)) {
255-
closestParent = closestParent.parent;
253+
let closestParentTask = task.parent;
254+
while (closestParentTask !== null && !(closestParentTask instanceof Task)) {
255+
closestParentTask = closestParentTask.parent;
256256
}
257257

258-
if (!closestParent) {
258+
if (!closestParentTask) {
259259
return false;
260260
}
261261

262-
if (!renderedTasks.has(closestParent)) {
262+
if (!renderedTasks.has(closestParentTask)) {
263263
// This task is a direct or indirect child of another task that we are waiting to draw,
264264
// so don't draw it yet, it will be done recursively later.
265-
if (tasks.includes(closestParent)) {
265+
if (tasks.includes(closestParentTask)) {
266266
return true;
267267
}
268268
}

0 commit comments

Comments
 (0)