Skip to content

Commit bf75242

Browse files
author
katiegoines
committed
testing looping
1 parent f2ab76d commit bf75242

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/scripts/validate-redirects.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,13 @@ module.exports = {
4545
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;
4646
errors.push(errorMessage);
4747

48-
console.log(errorMessage)
49-
5048
validateEntries(redirects.splice(parseInt(error.instancePath.slice(1, -7)) + 1));
5149

52-
} else if (valid && errors.length > 0) {
53-
console.log('logging', errors)
54-
}
50+
}
5551
}
5652
validateEntries(redirects);
5753

54+
console.log(errors)
5855
return errors;
5956
}
6057
}

0 commit comments

Comments
 (0)