mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Clean up code.
This commit is contained in:
@@ -58,10 +58,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
{
|
||||
$count = $currency->transactions()->whereNull('deleted_at')->count() + $currency->transactionJournals()->whereNull('deleted_at')->count();
|
||||
// also count foreign:
|
||||
$count += Transaction::where('foreign_currency_id', $currency->id)->count();
|
||||
|
||||
return $count;
|
||||
|
||||
return $count + Transaction::where('foreign_currency_id', $currency->id)->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user