chore: lint

This commit is contained in:
canove
2025-05-05 21:33:35 -03:00
parent 53c77dd11c
commit 8cc8b44724

View File

@@ -223,7 +223,10 @@ export const prepareWAMessageMedia = async(
async() => { async() => {
try { try {
await fs.unlink(encFilePath) await fs.unlink(encFilePath)
if (originalFilePath) await fs.unlink(originalFilePath) if(originalFilePath) {
await fs.unlink(originalFilePath)
}
logger?.debug('removed tmp files') logger?.debug('removed tmp files')
} catch(error) { } catch(error) {
logger?.warn('failed to remove tmp file') logger?.warn('failed to remove tmp file')