From 7051183603ed6be1e8a813af29d36a6bb0fd0f38 Mon Sep 17 00:00:00 2001 From: Alan Crosswell Date: Sat, 31 Oct 2020 15:46:03 -0400 Subject: [PATCH] remove empty array elements passed to vale (#3190) --- scripts/check-docs-quality.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.