Node.js based forum software built for the modern web
lint: remove unused
Barış Soner Uşaklı530241e0f2da
diff --git a/src/posts/attachments.js b/src/posts/attachments.jsindex 313eb47019..679247da27 100644--- a/src/posts/attachments.js+++ b/src/posts/attachments.js@@ -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]);});