Skip to content

Commit 7ea8e45

Browse files
committed
Simplified hardDeleting condition
1 parent 096ecd7 commit 7ea8e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ protected function getArrayableRelations()
11721172
*/
11731173
protected function hardDeleting()
11741174
{
1175-
return static::$_softDelete and $this->forceDeleting or ! static::$_softDelete;
1175+
return ! static::$_softDelete or $this->forceDeleting;
11761176
}
11771177

11781178
/**

0 commit comments

Comments
 (0)