diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.js index 4c0cfee7c..b0b57166c 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);