Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nshuba committed Dec 13, 2024
1 parent cdc0fc4 commit 2fbcdfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/validate_schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2fbcdfb

Please sign in to comment.