From 3bafc396fc88d032c5aa8fb9497daa5d8e6c6ff1 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 14 Mar 2020 13:13:27 +0100 Subject: [PATCH] fix consistency checks --- src/services/consistency_checks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);