Skip to content

Commit 284e379

Browse files
refactor: simplify expression
1 parent ad151a5 commit 284e379

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,9 @@ protected function addTablePrefix($query, string $column): string
485485
}
486486
}
487487

488-
return collect([
489-
$this->getTablePrefix($query),
490-
$column,
491-
])->filter()->implode('.');
488+
$prefix = $this->getTablePrefix($query);
489+
490+
return $prefix ? $prefix.$column : $column;
492491
}
493492

494493
/**

0 commit comments

Comments
 (0)