Skip to content

Commit

Permalink
refactor: by rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 17, 2024
1 parent 51bd522 commit 8f7f0c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1857,11 +1857,7 @@ public function setData($set, ?bool $escape = null, string $alias = '')

$escapedValue = $escape ? $this->db->escape($rowValue) : $rowValue;

if ($keyType !== null) {
$clean[] = new SqlValue($escapedValue, $keyType);
} else {
$clean[] = $escapedValue;
}
$clean[] = ($keyType !== null) ? new SqlValue($escapedValue, $keyType) : $escapedValue;
}

$row = $clean;
Expand Down

0 comments on commit 8f7f0c0

Please sign in to comment.