diff --git a/src/controllers/user.js b/src/controllers/user.js index 4191d55..391401f 100644 --- a/src/controllers/user.js +++ b/src/controllers/user.js @@ -75,7 +75,6 @@ class UserController { const image = await Jimp.read(tempPath); if (image.bitmap.width != 64 || image.bitmap.height != 64) { - fs.unlinkSync(targetPath); return res.status(400).send('This does not look like a minecraft skin.'); } @@ -98,7 +97,6 @@ class UserController { const image = await Jimp.read(tempPath); if ((image.bitmap.width != 64 || image.bitmap.height != 32) && (image.bitmap.width != 128 || image.bitmap.height != 64)) { - fs.unlinkSync(tempPath); return res.status(400).send('This does not look like a minecraft cape.'); }