Update secret-fns.ts

This commit is contained in:
Daniel Hougaard
2024-04-12 13:31:48 +02:00
parent 75267987fc
commit 702cd0d403

View File

@@ -112,8 +112,8 @@ const generatePaths = (
folderId: child.id
});
// We make sure that the max depth doesn't exceed 20.
// We do this to make as a "circuit break", basically to ensure that we can't encounter any potential memory leaks.
// We make sure that the recursion depth doesn't exceed 20.
// We do this to create "circuit break", basically to ensure that we can't encounter any potential memory leaks.
if (currentDepth >= 20) {
return;
}