From 11633bf4033913e7a2b1002dc86c894e92e85a78 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 26 Nov 2018 15:52:07 -0700 Subject: [PATCH] tools/combine: use arrow functions for Array.map closures --- tools/combine.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/combine.js b/tools/combine.js index e08b66a..68ecf0b 100644 --- a/tools/combine.js +++ b/tools/combine.js @@ -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('');