chore: eslint prefer-arrow-callback

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:01:39 -07:00
committed by Julian Lam
parent 707b55b6a5
commit b56d9e12b5
334 changed files with 4995 additions and 5182 deletions

View File

@@ -128,7 +128,7 @@ module.exports = function (Posts) {
const type = mime.getType(fileName);
return type && type.match(/image./);
});
await Promise.all(filePaths.map(async function (fileName) {
await Promise.all(filePaths.map(async (fileName) => {
try {
const size = await image.size(path.join(pathPrefix, fileName));
winston.verbose(`[posts/uploads/${fileName}] Saving size`);