mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup.
This commit is contained in:
@@ -30,15 +30,9 @@ use FireflyIII\Models\Transaction;
|
||||
*/
|
||||
class TransactionObserver
|
||||
{
|
||||
/**
|
||||
* @param Transaction|null $transaction
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function deleting(?Transaction $transaction): void
|
||||
{
|
||||
app('log')->debug('Observe "deleting" of a transaction.');
|
||||
$transaction?->transactionJournal?->delete();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user