tools/combine: use arrow functions for Array.map closures
This commit is contained in:
parent
1bc78625f0
commit
11633bf403
@ -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('');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user