remove empty array elements passed to vale (#3190)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user