Eliminate an extra level of indentation

This commit is contained in:
Tautvidas Sipavičius
2016-10-31 22:27:44 +02:00
parent e855fdbbaf
commit 2a961cca01

View File

@ -83,10 +83,8 @@ class MailChimp {
} }
if(!isset($header_hash)) { if(!isset($header_hash)) {
$header_hash = md5(implode(',', $header)); $header_hash = md5(implode(',', $header));
} else { } elseif(md5(implode(',', $header) !== $header_hash)) {
if(md5(implode(',', $header) !== $header_hash)) { return $this->throwException('headers');
return $this->throwException('headers');
}
} }
} else { } else {
$subscribers[] = $obj; $subscribers[] = $obj;
@ -147,4 +145,4 @@ class MailChimp {
} }
throw new \Exception($errorMessage); throw new \Exception($errorMessage);
} }
} }