Skip to content

Commit

Permalink
Update FilterTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
huangbule2024 authored Jun 14, 2024
1 parent e6c7bb4 commit 8ef1384
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Traits/FilterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ private function halfOpenFilter($qr, $column, $param)
if (!is_array($arr = $param[$column])) {
$arr = explode(',', $arr);
}
if (count($arr) != 2)
throw new InvalidArgumentException($column . " corresponding values must be throughput or comma separated.");

if (!empty($arr[0]) && !empty($arr[1])) {
return $qr->where($column, '>=', $arr[0])->where($column, '<', $arr[1]);
Expand Down

0 comments on commit 8ef1384

Please sign in to comment.