From 4e29a3aed412d9162e6b3bea7705f75e910bc599 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 17 Jan 2024 19:13:10 +0900 Subject: [PATCH] refactor: by rector --- system/Database/BaseBuilder.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index c4a3d851447c..eb3620fd7d2c 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -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;