Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Apr 14, 2024
1 parent 7bc5fcc commit 1b05d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryBuilder/AbstractDMLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ protected function prepareTraversable(Traversable $rows): Iterator|array
$rows = $rows->getIterator();
}

if ($rows instanceof Iterator && !$rows->valid()) {
/** @var Iterator $rows */
if (!$rows->valid()) {
return [];
}

/** @var Iterator $rows */
return $rows;
}

Expand Down

0 comments on commit 1b05d49

Please sign in to comment.