Skip to content

Commit adaddf8

Browse files
andrehankeandrehanke
authored andcommitted
enhance: removido catch sem tratamento de exceção
1 parent ed19ccc commit adaddf8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Database/Connection.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,9 @@ public function select($query, $bindings = [], $useReadPdo = true)
376376

377377
$result = [];
378378

379-
try {
380-
do {
381-
$result += $statement->fetchAll($this->getFetchMode());
382-
} while ($statement->nextRowset());
383-
} catch (\Exception $e) {
384-
}
379+
do {
380+
$result += $statement->fetchAll($this->getFetchMode());
381+
} while ($statement->nextRowset());
385382

386383
$result = [...$result];
387384

0 commit comments

Comments
 (0)