Skip to content

Commit

Permalink
Make sendRequest is simple
Browse files Browse the repository at this point in the history
  • Loading branch information
thonguyen-sivn committed Oct 8, 2022
1 parent ac22cd1 commit 2776896
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Managers/RequestManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ public function sendRequest($method, $url, $options = [])



$request = new Request($method, $url);
return call_user_func(
[$this->httpAdapter, 'sendRequest'],
$request
);
$request = new Request($method, $url);
$response = $this->httpAdapter->sendRequest($request);

return $response;
}
}

0 comments on commit 2776896

Please sign in to comment.