Skip to content

Commit e000f00

Browse files
authored
Update GithubExceptionThrower.php
1 parent a54c223 commit e000f00

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/Github/HttpClient/Plugin/GithubExceptionThrower.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ public function doHandleRequest(RequestInterface $request, callable $next, calla
5959
if (422 === $response->getStatusCode() && isset($content['errors'])) {
6060
$errors = [];
6161
foreach ($content['errors'] as $error) {
62-
$code = null;
63-
if (isset($error['code'])) {
64-
$code = $error['code'];
65-
}
66-
6762
switch ($error['code'] ?? null) {
6863
case 'missing':
6964
$errors[] = sprintf('The %s %s does not exist, for resource "%s"', $error['field'], $error['value'], $error['resource']);

0 commit comments

Comments
 (0)