Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
KerryJones committed Jul 18, 2024
1 parent 59bbb4e commit af7c457
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ClientBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ public function execute($method, array $arguments = []): object
'query' => $arguments,
]);
} catch (\GuzzleHttp\Exception\ClientException $e) {
if (!$e->hasResponse()) {
throw $e;
}

$response = match ($e->getResponse()->getStatusCode()) {
404 => $e->getResponse(),
default => throw $e,
Expand Down

0 comments on commit af7c457

Please sign in to comment.