Skip to content

Commit b73fcd7

Browse files
authored
Remove uneeded code
1 parent 6c59260 commit b73fcd7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Model/ListCriteria.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,9 @@ public function getViewId(): ?int
9797

9898
public function getQueryParams(): array
9999
{
100-
$query = [];
101-
$filters = $this->getFilters();
100+
$query = $this->getFilters();
102101

103-
if ($filters) {
104-
$query = $filters;
105-
} else {
102+
if (!$query) {
106103
if ($this->getFields()) {
107104
$query['fields'] = implode(',', $this->getFields());
108105
}

0 commit comments

Comments
 (0)