Skip to content

Commit a32eec8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9c92c63 commit a32eec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/generateContent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function loadJsonData(filename, directory = "src/data") {
3838

3939
function generateContent() {
4040
const files = ["speakers", "sessions", "schedule"];
41-
if (files.some((file) => !fs.existsSync(path.join("src/data", `${file}.json`)))) {
41+
if (
42+
files.some((file) => !fs.existsSync(path.join("src/data", `${file}.json`)))
43+
) {
4244
console.log("Nothing to generate. Missing data.");
4345
return;
4446
}

0 commit comments

Comments
 (0)