Unlink input first

This commit is contained in:
Dragon Fire
2021-04-03 11:24:35 -04:00
parent 751169748d
commit 0b84358ded
+1 -1
View File
@@ -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;