1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

No need to create a function

This commit is contained in:
Michael Dowling 2014-10-02 10:50:23 -07:00
parent bfef02f98b
commit bc73eb7b30

View File

@ -304,9 +304,7 @@ class Client implements ClientInterface
throw RingBridge::getNoRingResponseException($trans->request);
},
// Cancel function. Just proxy to the underlying future.
function () use ($response) {
return $response->cancel();
}
[$response, 'cancel']
);
}