Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Feb 1, 2024
1 parent dc6b823 commit ce28b57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/validate-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ function validateSchema(filePath, fileContent, schemaValidator) {
try {
const obj = JSON.parse(fileContent);
const validate = schemaValidator(obj);

const errors = validate ? [] : (obj.$schema === 'http://json-schema.org/draft-04/schema' && ajvDraft04.errors) || ajv.errors;

return { filePath, validate, errors }
return { filePath, validate, errors };
} catch (error) {
return {
filePath,
Expand Down

0 comments on commit ce28b57

Please sign in to comment.