Skip to content

Build your personal knowledge base with Trilium Notes

fix consistency checks

zadam3bafc396fc88
diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.js
index 4c0cfee7c7..b0b57166c4 100644
--- a/src/services/consistency_checks.js
+++ b/src/services/consistency_checks.js
@@ -51,7 +51,7 @@ class ConsistencyChecks {
childToParents[childNoteId].push(parentNoteId);
}
- function checkTreeCycle(noteId, path) {
+ const checkTreeCycle = (noteId, path) => {
if (noteId === 'root') {
return;
}
@@ -75,7 +75,7 @@ class ConsistencyChecks {
checkTreeCycle(parentNoteId, newPath);
}
}
- }
+ };
const noteIds = Object.keys(childToParents);