mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: break long line
This commit is contained in:
@@ -103,7 +103,9 @@ module.exports = function (Posts) {
|
||||
const tsPrefix = /^\d{13}-/;
|
||||
files = files.filter(filename => tsPrefix.test(filename));
|
||||
|
||||
files = await Promise.all(files.map(async filename => (await Posts.uploads.isOrphan(`/files/${filename}`) ? `/files/${filename}` : null)));
|
||||
files = await Promise.all(files.map(
|
||||
async filename => (await Posts.uploads.isOrphan(`/files/${filename}`) ? `/files/${filename}` : null)
|
||||
));
|
||||
files = files.filter(Boolean);
|
||||
|
||||
return files;
|
||||
|
||||
Reference in New Issue
Block a user