From 9d84ff1294b418bca01b46f5e6859e1f6f14d52a Mon Sep 17 00:00:00 2001 From: IanM Date: Tue, 12 Dec 2023 19:13:27 +0000 Subject: [PATCH] remove else --- src/Api/Controllers/UploadTopImageController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Api/Controllers/UploadTopImageController.php b/src/Api/Controllers/UploadTopImageController.php index 8c4fec4..7aa796d 100755 --- a/src/Api/Controllers/UploadTopImageController.php +++ b/src/Api/Controllers/UploadTopImageController.php @@ -71,8 +71,6 @@ public function data(ServerRequestInterface $request, Document $document) if (!$file instanceof UploadedFile) { if (is_array($file)) { $file = Arr::first($file); - } else { - throw new ValidationException(['file' => 'Not an UploadFile instance']); } }