Skip to content

Commit eb41c54

Browse files
kenjispaulbalandan
andauthored
refactor: use method chaining
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
1 parent aee5998 commit eb41c54

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/Database/BaseBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,8 +2803,7 @@ protected function _truncate(string $table): string
28032803
*/
28042804
public function getCompiledDelete(bool $reset = true): string
28052805
{
2806-
$this->testMode();
2807-
$sql = $this->delete('', null, $reset);
2806+
$sql = $this->testMode()->delete('', null, $reset);
28082807
$this->testMode(false);
28092808

28102809
return $this->compileFinalQuery($sql);

0 commit comments

Comments
 (0)