From 13ef3e4ef9df17ef1b0caa1bf23c0d23523390b6 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sat, 29 Apr 2017 11:25:19 -0700 Subject: [PATCH] Reduce number of ops --- src/Curl/Curl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 00e313d..01ccda8 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -399,10 +399,10 @@ class Curl } $this->errorMessage = $this->curlError ? $this->curlErrorMessage : $this->httpErrorMessage; - if (!$this->error) { - $this->call($this->successFunction); - } else { + if ($this->error) { $this->call($this->errorFunction); + } else { + $this->call($this->successFunction); } $this->call($this->completeFunction);