Skip to content

Commit 7a7c207

Browse files
committed
refactor: . inline variables
1 parent 28f8469 commit 7a7c207

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Task/ListItem.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,17 @@ export class ListItem {
6868
return null;
6969
}
7070

71-
const indentation = nonTaskMatch[1];
7271
const listMarker = nonTaskMatch[2];
73-
const statusCharacter = nonTaskMatch[4] ?? null;
74-
const description = nonTaskMatch[5].trim();
75-
7672
if (listMarker === undefined) {
7773
return null;
7874
}
7975

8076
return new ListItem({
8177
originalMarkdown,
82-
indentation,
78+
indentation: nonTaskMatch[1],
8379
listMarker,
84-
statusCharacter,
85-
description,
80+
statusCharacter: nonTaskMatch[4] ?? null,
81+
description: nonTaskMatch[5].trim(),
8682
taskLocation,
8783
parent,
8884
});

0 commit comments

Comments
 (0)