diff --git a/validate-and-update-manifest.js b/validate-and-update-manifest.js index d88b2ab..58bf2fc 100644 --- a/validate-and-update-manifest.js +++ b/validate-and-update-manifest.js @@ -21,7 +21,7 @@ const newVersion = { }; async function updateManifest() { - await validVersion(newVersion); + await validVersion(newVersion); // Add the new version to the manifest jsonData[0].versions.unshift(newVersion); @@ -31,14 +31,6 @@ async function updateManifest() { console.log('Manifest updated successfully.'); } -async function validateJSON() { - for (const item of jsonData) { - for (const version of item.versions) { - await validVersion(version); - } - } -} - async function validVersion(version) { console.log(`Validating version ${version.version}...`); @@ -112,8 +104,7 @@ async function downloadFile(url, destinationPath, redirects = 5) { } async function run() { - await updateManifest(); - await validateJSON(); + await updateManifest(); } run(); \ No newline at end of file