Skip to content

Commit 14a2a49

Browse files
committed
comment: Explain an early return
1 parent 2a040da commit 14a2a49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Renderer/TaskLineRenderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ export class TaskLineRenderer {
338338
return task.description;
339339
}
340340

341+
// Skip if the task is in a file with no lines
341342
const linkCache = task.file.cachedMetadata.links;
342343
if (!linkCache) {
343344
return task.description;

0 commit comments

Comments
 (0)