Skip to content

Commit

Permalink
Merge pull request #14 from stfndamjanovic/minor-changes
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
freekmurze authored Jan 26, 2023
2 parents 5dc8e3c + c732552 commit 1fb9456
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
},
"autoload": {
"psr-4": {
"Spatie\\DeletedModels\\": "src",
"Spatie\\DeletedModels\\Database\\Factories\\": "database/factories"
"Spatie\\DeletedModels\\": "src"
}
},
"autoload-dev": {
Expand Down
2 changes: 0 additions & 2 deletions src/Models/Concerns/KeepsDeletedModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public function deleteWithoutKeeping()
{
$this->shouldKeep = false;

$this->delete();

return tap($this->delete(), fn () => $this->shouldKeep = true);
}

Expand Down

0 comments on commit 1fb9456

Please sign in to comment.