feat: require Node.js >=10.13

BREAKING CHANGE: Require Node.js >= 10.13
This commit is contained in:
Pierre Vanduynslager
2019-12-05 13:18:42 -05:00
parent 916c2685c5
commit 0716a45b7d
12 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = async (repositoryUrl, ciBranch, context) => {
const duplicates = [...branches]
.map(branch => branch.name)
.sort()
.filter((val, idx, arr) => arr[idx] === arr[idx + 1] && arr[idx] !== arr[idx - 1]);
.filter((_, idx, arr) => arr[idx] === arr[idx + 1] && arr[idx] !== arr[idx - 1]);
if (duplicates.length > 0) {
errors.push(getError('EDUPLICATEBRANCHES', {duplicates}));