lint: remove unused

This commit is contained in:
Barış Soner Uşaklı
2024-07-11 22:27:41 -04:00
parent 9b8c834ef0
commit 530241e0f2

View File

@@ -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]);
});