From 9ddd372d6749fe709af47773761d09915be16dea Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 29 Jun 2025 10:46:35 -0400 Subject: [PATCH] refactor: Remove redundant offset in `shiftLeftRightAttribute` call in `NestedSetsBehavior` class. --- src/NestedSetsBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index 4dfee70..e21ff4f 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -174,7 +174,7 @@ public function afterDelete(): void ], $condition, ); - $this->shiftLeftRightAttribute($rightValue + 1, -2); + $this->shiftLeftRightAttribute($rightValue, -2); } $this->operation = null;