diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php index 12c6a67620dd..77a32b728d49 100644 --- a/lib/private/Preview/Office.php +++ b/lib/private/Preview/Office.php @@ -69,7 +69,6 @@ public function getThumbnail(File $file, $maxX, $maxY, $scalingUp) { $pdf = new \imagick($pdfPreview . '[0]'); $pdf->setImageFormat('jpg'); } catch (\Exception $e) { - \unlink($absPath); @\unlink($pdfPreview); \OCP\Util::writeLog('core', $e->getmessage(), \OCP\Util::ERROR); return false;