mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Code cleanup
This commit is contained in:
@@ -73,12 +73,8 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
|
||||
// is the default currency for the system
|
||||
$defaultSystemCode = config('firefly.default_currency', 'EUR');
|
||||
if ($currency->code === $defaultSystemCode) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// can be deleted
|
||||
return true;
|
||||
return !($currency->code === $defaultSystemCode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -232,10 +228,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
*/
|
||||
public function findNull(int $currencyId): ?TransactionCurrency
|
||||
{
|
||||
/** @var TransactionCurrency $res */
|
||||
$res = TransactionCurrency::find($currencyId);
|
||||
|
||||
return $res;
|
||||
return TransactionCurrency::find($currencyId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user