Remove superfluous indentation level in mod/poco

This commit is contained in:
Hypolite Petovan 2020-06-08 18:58:05 -04:00
parent 6774ee6691
commit 0c1e876ee0

View File

@ -204,7 +204,10 @@ function poco_init(App $a) {
} }
} }
if (is_array($contacts)) { if (!is_array($contacts)) {
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
}
if (DBA::isResult($contacts)) { if (DBA::isResult($contacts)) {
foreach ($contacts as $contact) { foreach ($contacts as $contact) {
if (!isset($contact['updated'])) { if (!isset($contact['updated'])) {
@ -338,9 +341,6 @@ function poco_init(App $a) {
} else { } else {
$ret['entry'][] = []; $ret['entry'][] = [];
} }
} else {
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
}
Logger::log("End of poco", Logger::DEBUG); Logger::log("End of poco", Logger::DEBUG);