Skip to content

Commit e69438b

Browse files
authored
Fix: php stan (#653)
* Fix: php stan * Fix: php stan
1 parent a047cc5 commit e69438b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GraphQL/Resolver/QueryType.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,8 @@ public function resolveObjectGetter($value = null, $args = [], $context = [], Re
303303
$conditionParts[] = '(' . $sqlGetCondition . ')';
304304
}
305305

306-
if ($conditionParts) {
307-
$condition = implode(' AND ', $conditionParts);
308-
$objectList->setCondition($condition);
309-
}
306+
$condition = implode(' AND ', $conditionParts);
307+
$objectList->setCondition($condition);
310308

311309
$objectList->setObjectTypes([AbstractObject::OBJECT_TYPE_OBJECT, AbstractObject::OBJECT_TYPE_FOLDER, AbstractObject::OBJECT_TYPE_VARIANT]);
312310
$objectList->setLimit(1);

0 commit comments

Comments
 (0)