Skip to content

Commit eeaeec5

Browse files
refactor: Remove redundant offset in shiftLeftRightAttribute call in NestedSetsBehavior class. (#17)
1 parent 4af8a45 commit eeaeec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NestedSetsBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function afterDelete(): void
174174
],
175175
$condition,
176176
);
177-
$this->shiftLeftRightAttribute($rightValue + 1, -2);
177+
$this->shiftLeftRightAttribute($rightValue, -2);
178178
}
179179

180180
$this->operation = null;

0 commit comments

Comments
 (0)