Skip to content

Commit

Permalink
testing looping
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Jun 10, 2024
1 parent 700618b commit 007b095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/validate-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ module.exports = {
const errorMessage = '\n\n' + 'INVALID ENTRY: Please correct the error in the "' + loc +'" property of the following entry: \n' + invalidEntry + '\n\n' + 'ERROR MESSAGE: ' + error.message;
errors.push(errorMessage);

redirects = redirects.splice(error.instancePath.slice(1, -7) + 1);
// redirects = redirects.splice(error.instancePath.slice(1, -7) + 1);

validateEntries(redirects);
validateEntries(redirects.splice(error.instancePath.slice(1, -7) + 1));

} else if (valid && errors.length > 0) {
return JSON.stringify(errors);
Expand Down

0 comments on commit 007b095

Please sign in to comment.