Skip to content

Commit

Permalink
refactor: remove unneeded if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 5, 2024
1 parent c9798b6 commit 7602145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/View/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function generate($tableData = null)
$cell = $cell['data'] ?? '';
$out .= $temp;

if ($cell === '' || $cell === null) {
if ($cell === '') {
$out .= $this->emptyCells;
} elseif (isset($this->function)) {
$out .= ($this->function)($cell);
Expand Down

0 comments on commit 7602145

Please sign in to comment.