Skip to content

Commit

Permalink
try to make linters happy
Browse files Browse the repository at this point in the history
Signed-off-by: Glandos <bugs-github@antipoul.fr>
  • Loading branch information
Glandos authored and szaimen committed Apr 17, 2023
1 parent 3440387 commit e542e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Preview/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function generatePreviews(File $file, array $specifications, $mimeType =
/**
* Generate a small image straight away without generating a max preview first
* Preview generated is 256x256
*
*
* @param ISimpleFile[] $previewFiles
*
* @throws NotFoundException
Expand All @@ -247,7 +247,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previ

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);
}
}
Expand Down

0 comments on commit e542e60

Please sign in to comment.