Remove additional uses of function_exists() where no longer necessary

This commit is contained in:
Zach Borboa
2021-11-25 11:36:35 -05:00
parent 9c03d19715
commit c4ee562d5f
+2 -2
View File
@@ -494,7 +494,7 @@ class Curl
$this->headerCallbackData->stopRequest = false;
// Include additional error code information in error message when possible.
if ($this->curlError && function_exists('curl_strerror')) {
if ($this->curlError) {
$this->curlErrorMessage =
curl_strerror($this->curlErrorCode) . (
empty($this->curlErrorMessage) ? '' : ': ' . $this->curlErrorMessage
@@ -1567,7 +1567,7 @@ class Curl
*/
public function reset()
{
if (function_exists('curl_reset') && (is_resource($this->curl) || $this->curl instanceof \CurlHandle)) {
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
curl_reset($this->curl);
} else {
$this->curl = curl_init();