From 0b84358ded4fbd359ef61449eb5264a50511ada6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 3 Apr 2021 11:24:35 -0400 Subject: [PATCH] Unlink input first --- commands/voice/dec-talk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/voice/dec-talk.js b/commands/voice/dec-talk.js index 4bf3ee73..54eb9b8c 100644 --- a/commands/voice/dec-talk.js +++ b/commands/voice/dec-talk.js @@ -78,8 +78,8 @@ module.exports = class DECTalkCommand extends Command { }); let result; try { - result = await readFile(outputFile); await unlink(inputFile); + result = await readFile(outputFile); await unlink(outputFile); } catch { if (!result) result = null;