fixed removing before moving

This commit is contained in:
leca 2025-01-31 22:29:15 +03:00
parent 100b060aa7
commit f1b569a9ec
1 changed files with 0 additions and 2 deletions

View File

@ -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.');
}