Skip to content

Commit e9c1794

Browse files
committed
Update dependencies
1 parent 1631f8d commit e9c1794

File tree

3 files changed

+1888
-1883
lines changed

3 files changed

+1888
-1883
lines changed

lib/validateOptions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ function reportInvalidOption(optionName, optionError = 'Invalid value') {
5353
}
5454

5555
function keywordsList(keywords) {
56-
return keywords.reduce((accumulator, value, index) => {
57-
const comma = index === 0 ? '' : ', ';
58-
59-
return accumulator + comma + value;
60-
}, '');
56+
return keywords.join(', ');
6157
}
6258

6359
function validateOrder(options) {

0 commit comments

Comments
 (0)