← All changes
|
vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php
+1
-1
3.2.21
→
4.7.0
View file →
| @@ -260,9 +260,9 @@ | ||
| 260 | 260 | |
| 261 | 261 | if (!@file_exists($destination)) { |
| 262 | 262 | throw new ConversionFailedException('Destination file is not there: ' . $destination); |
| 263 | 263 | } elseif (@filesize($destination) === 0) { |
| 264 | - unlink($destination); | |
| 264 | + @unlink($destination); | |
| 265 | 265 | throw new ConversionFailedException('Destination file was completely empty'); |
| 266 | 266 | } else { |
| 267 | 267 | if (!isset($this->options['_suppress_success_message'])) { |
| 268 | 268 | $this->ln(); |