aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Generator.php
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2022-11-13 22:20:16 +0100
committerSimon L <szaimen@e.mail.de>2023-04-17 16:29:14 +0200
commite542e60dbcb688d28f1335d20709555c0528e8cd (patch)
tree388d1b74b73196ddb63fc1a8f147f10202275444 /lib/private/Preview/Generator.php
parent3440387f0f800cb4ee7380d59f65ccd64a265148 (diff)
downloadnextcloud-server-e542e60dbcb688d28f1335d20709555c0528e8cd.tar.gz
nextcloud-server-e542e60dbcb688d28f1335d20709555c0528e8cd.zip
try to make linters happy
Signed-off-by: Glandos <bugs-github@antipoul.fr>
Diffstat (limited to 'lib/private/Preview/Generator.php')
-rw-r--r--lib/private/Preview/Generator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 10a02d15fa1..ed9474fafb2 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -236,7 +236,7 @@ class Generator {
/**
* Generate a small image straight away without generating a max preview first
* Preview generated is 256x256
- *
+ *
* @param ISimpleFile[] $previewFiles
*
* @throws NotFoundException
@@ -247,7 +247,7 @@ class Generator {
try {
return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix);
- } catch (NotFoundException) {
+ } catch (NotFoundException $e) {
return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix);
}
}