Skip to content

Commit 57a698d

Browse files
alamiraultnicolas-grekas
authored andcommitted
Remove unused local variable
1 parent 7a19b5b commit 57a698d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Response/CurlResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function __construct(CurlClientState $multi, \CurlHandle|string $ch, arra
168168
});
169169

170170
$this->initializer = static function (self $response) {
171-
$waitFor = curl_getinfo($ch = $response->handle, \CURLINFO_PRIVATE);
171+
$waitFor = curl_getinfo($response->handle, \CURLINFO_PRIVATE);
172172

173173
return 'H' === $waitFor[0];
174174
};
@@ -267,7 +267,7 @@ private static function schedule(self $response, array &$runningResponses): void
267267
$runningResponses[$i] = [$response->multi, [$response->id => $response]];
268268
}
269269

270-
if ('_0' === curl_getinfo($ch = $response->handle, \CURLINFO_PRIVATE)) {
270+
if ('_0' === curl_getinfo($response->handle, \CURLINFO_PRIVATE)) {
271271
// Response already completed
272272
$response->multi->handlesActivity[$response->id][] = null;
273273
$response->multi->handlesActivity[$response->id][] = null !== $response->info['error'] ? new TransportException($response->info['error']) : null;

0 commit comments

Comments
 (0)