Remove negation

This commit is contained in:
Zach Borboa
2016-08-15 00:30:09 -07:00
parent 484d87fe2f
commit e31718fbfe
+3 -3
View File
@@ -336,12 +336,12 @@ class Curl
public function exec($ch = null)
{
$this->responseCookies = array();
if (!($ch === null)) {
$this->rawResponse = curl_multi_getcontent($ch);
} else {
if ($ch === null) {
$this->call($this->beforeSendFunction);
$this->rawResponse = curl_exec($this->curl);
$this->curlErrorCode = curl_errno($this->curl);
} else {
$this->rawResponse = curl_multi_getcontent($ch);
}
$this->curlErrorMessage = curl_error($this->curl);
$this->curlError = !($this->curlErrorCode === 0);