This commit is contained in:
2021-05-11 11:10:38 +08:00
parent 0592f2b50f
commit 5ea604651b
3 changed files with 4 additions and 12 deletions
+1 -3
View File
@@ -136,9 +136,7 @@ class Curl extends ClientAbstracts
*/
private function execute($curl): Result|bool|array|string
{
defer(function () {
$this->cleanData();
});
defer(fn() => $this->cleanData());
$output = curl_exec($curl);
if ($output === false) {
return $this->fail(400, curl_error($curl));