Remove dead code

This commit is contained in:
D. Berge
2023-09-24 12:15:06 +02:00
parent 8a2d526c50
commit 2069d9c3d7

View File

@@ -42,10 +42,6 @@ function checkSyntax (value, type = "project") {
: typeof value == type;
}
// return Object.entries(requiredFields).every( ([field, test]) => {
// return value.hasOwnProperty(field) && checkSyntax(value[field], test);
// });
for (const [field, test] of Object.entries(requiredFields)) {
if (!value.hasOwnProperty(field)) {
return `Missing required property: ${field}`;