remove unnecessayly nested ifs

Found by Sonarqube.
This commit is contained in:
Sarah Hoffmann
2021-07-11 19:11:37 +02:00
parent 1cdc30c5e8
commit d933ead2b5
3 changed files with 15 additions and 18 deletions

View File

@@ -817,10 +817,8 @@ class Geocode
// No results? Done
if (empty($aResults)) {
if ($this->bFallback) {
if ($this->fallbackStructuredQuery()) {
return $this->lookup();
}
if ($this->bFallback && $this->fallbackStructuredQuery()) {
return $this->lookup();
}
return array();