Skip to content

Commit c4ee562

Browse files
committed
Remove additional uses of function_exists() where no longer necessary
1 parent 9c03d19 commit c4ee562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public function exec($ch = null)
494494
$this->headerCallbackData->stopRequest = false;
495495

496496
// Include additional error code information in error message when possible.
497-
if ($this->curlError && function_exists('curl_strerror')) {
497+
if ($this->curlError) {
498498
$this->curlErrorMessage =
499499
curl_strerror($this->curlErrorCode) . (
500500
empty($this->curlErrorMessage) ? '' : ': ' . $this->curlErrorMessage
@@ -1567,7 +1567,7 @@ public function diagnose($return = false)
15671567
*/
15681568
public function reset()
15691569
{
1570-
if (function_exists('curl_reset') && (is_resource($this->curl) || $this->curl instanceof \CurlHandle)) {
1570+
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
15711571
curl_reset($this->curl);
15721572
} else {
15731573
$this->curl = curl_init();

0 commit comments

Comments
 (0)