remove empty array elements passed to vale (#3190)

This commit is contained in:
Alan Crosswell
2020-10-31 15:46:03 -04:00
committed by GitHub
parent 0bb1a197da
commit 7051183603
+4 -1
View File
@@ -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.