mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: lint
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user