mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user