diff --git a/scripts/check-docs-quality.js b/scripts/check-docs-quality.js index f29463939b..3c05b406da 100755 --- a/scripts/check-docs-quality.js +++ b/scripts/check-docs-quality.js @@ -44,7 +44,10 @@ const getFilesToLint = () => { stdio: ['ignore', 'pipe', 'inherit'], }) .toString() - .split('\n'); + .split('\n') + .filter(function (el) { + return el != ''; + }); }; // Proceed with the script only if Vale linter is installed. Limit the friction and surprises caused by the script.