Skip to content

Commit d22ad40

Browse files
committed
refactor: . unwrap else
1 parent c197235 commit d22ad40

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Renderer/QueryResultsRenderer.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ export class QueryResultsRenderer {
257257

258258
if (!closestParent) {
259259
return false;
260-
} else {
261-
if (!renderedTasks.has(closestParent)) {
262-
// This task is a direct or indirect child of another task that we are waiting to draw,
263-
// so don't draw it yet, it will be done recursively later.
264-
if (tasks.includes(closestParent)) {
265-
return true;
266-
}
260+
}
261+
262+
if (!renderedTasks.has(closestParent)) {
263+
// This task is a direct or indirect child of another task that we are waiting to draw,
264+
// so don't draw it yet, it will be done recursively later.
265+
if (tasks.includes(closestParent)) {
266+
return true;
267267
}
268268
}
269269

0 commit comments

Comments
 (0)