Skip to content

Commit

Permalink
refactor: - earlier false return
Browse files Browse the repository at this point in the history
  • Loading branch information
ilandikov committed Oct 14, 2024
1 parent e5baff9 commit c197235
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Renderer/QueryResultsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ export class QueryResultsRenderer {
closestParent = closestParent.parent;
}

if (closestParent) {
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.
Expand Down

0 comments on commit c197235

Please sign in to comment.