Skip to content

Commit

Permalink
refactor: - Simplify code, by reusing 'line' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Dec 6, 2024
1 parent 82dc2f9 commit 60e407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Obsidian/FileParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class FileParser {
) {
if (listItem.task === undefined) {
const parentListItem: ListItem | null = this.line2ListItem.get(listItem.parent) ?? null;
this.line2ListItem.set(lineNumber, new ListItem(this.fileLines[lineNumber], parentListItem));
this.line2ListItem.set(lineNumber, new ListItem(line, parentListItem));
return sectionIndex;
}
let task;
Expand Down

0 comments on commit 60e407d

Please sign in to comment.