From 8ce9330a003cddd5c425db502ad44378d0757cf9 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Fri, 8 Apr 2022 09:07:56 -0400 Subject: [PATCH] Merge pull request #7477 from overleaf/em-bad-filetree Fix bad filetree script GitOrigin-RevId: 8f9b7d94c717b21b2183d43fdccf4564408f71fa --- services/web/scripts/find_malformed_filetrees.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/scripts/find_malformed_filetrees.js b/services/web/scripts/find_malformed_filetrees.js index f195502ba6..16c9758107 100644 --- a/services/web/scripts/find_malformed_filetrees.js +++ b/services/web/scripts/find_malformed_filetrees.js @@ -43,6 +43,7 @@ function findBadPaths(folder) { for (const [i, subfolder] of folder.folders.entries()) { if (!subfolder) { result.push(`folders.${i}`) + continue } for (const badPath of findBadPaths(subfolder)) { result.push(`folders.${i}.${badPath}`)