From 55af6b45f72e0717d7b6f07b69bc0f12f4fb4cd9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 18 Oct 2016 10:36:57 +0200 Subject: More tests * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma --- apps/files_trashbin/lib/Controller/PreviewController.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'apps/files_trashbin/lib/Controller') diff --git a/apps/files_trashbin/lib/Controller/PreviewController.php b/apps/files_trashbin/lib/Controller/PreviewController.php index 1e1f68e4317..c73b1c17c16 100644 --- a/apps/files_trashbin/lib/Controller/PreviewController.php +++ b/apps/files_trashbin/lib/Controller/PreviewController.php @@ -114,11 +114,6 @@ class PreviewController extends Controller { return new Http\FileDisplayResponse($f, Http::STATUS_OK, ['Content-Type' => $f->getMimeType()]); } catch (NotFoundException $e) { return new DataResponse([], Http::STATUS_NOT_FOUND); - } catch (\OC\PreviewNotAvailableException $e) { - return new DataResponse([], Http::STATUS_NOT_FOUND); - }catch(\Exception $e) { - return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); } - } } -- cgit v1.2.3