Skip to content

Commit bf5665e

Browse files
committed
refactor: . extract descriptionWithLinksFixed
1 parent 62996e5 commit bf5665e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Renderer/TaskLineRenderer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,8 @@ export class TaskLineRenderer {
293293
}
294294

295295
private async renderDescription(task: Task, span: HTMLSpanElement, isTaskInQueryFile: boolean) {
296-
let description = GlobalFilter.getInstance().removeAsWordFromDependingOnSettings(
297-
this.adjustRelativeLinksInDescription(task, isTaskInQueryFile),
298-
);
296+
const descriptionWithLinksFixed = this.adjustRelativeLinksInDescription(task, isTaskInQueryFile);
297+
let description = GlobalFilter.getInstance().removeAsWordFromDependingOnSettings(descriptionWithLinksFixed);
299298

300299
const { debugSettings } = getSettings();
301300
if (debugSettings.showTaskHiddenData) {

0 commit comments

Comments
 (0)