fixed removing before moving
This commit is contained in:
		@@ -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.');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user