Skip to content

Commit

Permalink
Merge branch 'main' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdemaegdt authored Oct 25, 2023
2 parents bbe0c08 + 1f7f0f9 commit 4df278c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/check_data_health.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ const fs = require('fs');
const path = require('path');

function checkDataHealth() {
checkJsonFilesAreValid();
checkJsonFilesAreValid('content');
// checkGeoJsonDataHealth();
}

function checkJsonFilesAreValid() {
fs.readdirSync('content').forEach(file => {
const filePath = path.join('content', file);
function checkJsonFilesAreValid(directory) {
fs.readdirSync(directory).forEach(file => {
const filePath = path.join(directory, file);

if (fs.statSync(filePath).isDirectory()) {
checkJsonFilesAreValid(filePath);
Expand Down

0 comments on commit 4df278c

Please sign in to comment.