tools/combine: use arrow functions for Array.map closures

This commit is contained in:
Bert Belder 2018-11-26 15:52:07 -07:00
parent 1bc78625f0
commit 11633bf403
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -105,12 +105,9 @@ source = source.concat('/*')
.concat(fs.readFileSync('LICENSE', 'utf8')
.replace(/^\s+|\s+$/g, '')
.split(/\r?\n/g)
.map(function(s) {
return ' * ' + s;
})
.map(function(s) {
return s.replace(/\s+$/, '');
}))
.map(line => ' * ' + line)
.map(line => line.replace(/\s+$/, ''))
)
.concat(' */')
.concat('');