mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
lint: remove unused
This commit is contained in:
@@ -17,7 +17,7 @@ Attachments.get = async (pids) => {
|
||||
const allHashes = _.flatten(postData.map(p => p && p.attachments));
|
||||
const allAttachments = await Attachments.getAttachments(allHashes);
|
||||
const hashToAttachment = _.zipObject(allHashes, allAttachments);
|
||||
const data = postData.map((post, idx) => {
|
||||
const data = postData.map((post) => {
|
||||
const pidHashes = post ? post.attachments : [];
|
||||
return pidHashes.map(hash => hashToAttachment[hash]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user