mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-27 17:16:14 +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 allHashes = _.flatten(postData.map(p => p && p.attachments)); | ||||||
| 	const allAttachments = await Attachments.getAttachments(allHashes); | 	const allAttachments = await Attachments.getAttachments(allHashes); | ||||||
| 	const hashToAttachment = _.zipObject(allHashes, allAttachments); | 	const hashToAttachment = _.zipObject(allHashes, allAttachments); | ||||||
| 	const data = postData.map((post, idx) => { | 	const data = postData.map((post) => { | ||||||
| 		const pidHashes = post ? post.attachments : []; | 		const pidHashes = post ? post.attachments : []; | ||||||
| 		return pidHashes.map(hash => hashToAttachment[hash]); | 		return pidHashes.map(hash => hashToAttachment[hash]); | ||||||
| 	}); | 	}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user