Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Dec 12, 2023
1 parent f471fb5 commit 9d84ff1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Api/Controllers/UploadTopImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

Expand Down

0 comments on commit 9d84ff1

Please sign in to comment.