From ce28b57afd0d3c5ba555cbf84606adc4a425dfb6 Mon Sep 17 00:00:00 2001 From: Mintu Date: Thu, 1 Feb 2024 17:56:48 +0530 Subject: [PATCH] cleanup --- scripts/validate-schemas.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/validate-schemas.js b/scripts/validate-schemas.js index 729805eb..4b1ba6e9 100644 --- a/scripts/validate-schemas.js +++ b/scripts/validate-schemas.js @@ -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,