Skip to content

Commit

Permalink
refactor: . unwrap else
Browse files Browse the repository at this point in the history
  • Loading branch information
ilandikov committed Oct 14, 2024
1 parent c197235 commit d22ad40
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Renderer/QueryResultsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ export class QueryResultsRenderer {

if (!closestParent) {
return false;
} else {
if (!renderedTasks.has(closestParent)) {
// This task is a direct or indirect child of another task that we are waiting to draw,
// so don't draw it yet, it will be done recursively later.
if (tasks.includes(closestParent)) {
return true;
}
}

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

Expand Down

0 comments on commit d22ad40

Please sign in to comment.