Skip to content

Commit 64201e4

Browse files
committed
💩 Remove optional, since already has check
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
1 parent 74fdc2f commit 64201e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithSorting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function applySorting($query)
6161
continue;
6262
}
6363

64-
if (optional($column)->hasSortCallback()) {
64+
if ($column->hasSortCallback()) {
6565
$query = app()->call($this->getColumn($field)->getSortCallback(), ['query' => $query, 'direction' => $direction]);
6666
} else {
6767
$query->orderBy($field, $direction);

0 commit comments

Comments
 (0)