Skip to content

Commit

Permalink
Remove console.log statement in amTaskWatcher function
Browse files Browse the repository at this point in the history
  • Loading branch information
muness committed Dec 26, 2023
1 parent b5d706b commit 9b99d37
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/amTaskWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ export function amTaskWatcher(_app: App, plugin: AmazingMarvinPlugin) {
return;
}
update.changes.iterChanges((fromA, _toA, _fromB, _toB, change) => {
console.log("change", change)
//only match if the change is on an AM task and it's a completed task
let line = update.state.doc.lineAt(fromA).text;
const match = line.match(COMPLETED_AM_TASK);
if (match && match[1]) {
plugin.markDone(match[1]);
}
let line = update.state.doc.lineAt(fromA).text;
const match = line.match(COMPLETED_AM_TASK);
if (match && match[1]) {
plugin.markDone(match[1]);
}
});
}
},
Expand Down

0 comments on commit 9b99d37

Please sign in to comment.