From 2fbcdfbfe78f3c52efc8d862bef2069dd0a5f8b5 Mon Sep 17 00:00:00 2001 From: Anastasia Shuba Date: Thu, 12 Dec 2024 16:44:26 -0800 Subject: [PATCH] code review --- bin/validate_schema.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/validate_schema.mjs b/bin/validate_schema.mjs index 3f945d5..367cb3d 100644 --- a/bin/validate_schema.mjs +++ b/bin/validate_schema.mjs @@ -47,10 +47,9 @@ function validateFile(file) { } function validateFolder(folder) { - fs.readdirSync(folder).forEach((file) => { + fs.readdirSync(folder, { recursive: true }).forEach((file) => { const fullPath = path.join(folder, file); if (fs.statSync(fullPath).isDirectory()) { - validateFolder(fullPath); return; }