mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
@@ -62,6 +62,7 @@ class Preferences
|
||||
try {
|
||||
Preference::where('user_id', auth()->user()->id)->where('name', $name)->delete();
|
||||
} catch (Exception $e) {
|
||||
Log::debug(sprintf('Not interesting: %s', $e->getMessage()));
|
||||
// don't care.
|
||||
}
|
||||
|
||||
@@ -80,7 +81,7 @@ class Preferences
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param mixed $default
|
||||
* @param mixed $default
|
||||
*
|
||||
* @return \FireflyIII\Models\Preference|null
|
||||
*/
|
||||
@@ -137,7 +138,7 @@ class Preferences
|
||||
try {
|
||||
$preference->delete();
|
||||
} catch (Exception $e) {
|
||||
Log::debug(sprintf('Could not delete preference #%d', $preference->id));
|
||||
Log::debug(sprintf('Could not delete preference #%d: %s', $preference->id, $e->getMessage()));
|
||||
}
|
||||
$preference = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user