ci: simplify validate-commit-message empty line logic
This commit is contained in:
parent
6c20e6ca2e
commit
b1a79fd2ec
|
@ -13,12 +13,8 @@ module.exports = (gulp) => () => {
|
|||
}
|
||||
|
||||
let someCommitsInvalid = false;
|
||||
let commitsByLine = stdout.trim().split(/\n/);
|
||||
for (var i = 0; i < commitsByLine.length; i++) {
|
||||
if (!commitsByLine[i]) {
|
||||
commitsByLine.splice(i, 1);
|
||||
}
|
||||
}
|
||||
let commitsByLine = stdout.trim().split(/\n/).filter(line => line != '');
|
||||
|
||||
console.log(`Examining ${commitsByLine.length} commits between HEAD and master`);
|
||||
|
||||
if (commitsByLine.length == 0) {
|
||||
|
|
Loading…
Reference in New Issue