mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-03 12:04:28 +00:00
Clean up code.
This commit is contained in:
@@ -40,7 +40,7 @@ trait LocationServiceTrait
|
||||
*/
|
||||
protected function storeNewLocation(Model $model, array $data): ?Location
|
||||
{
|
||||
$data['store_location'] = $data['store_location'] ?? false;
|
||||
$data['store_location'] ??= false;
|
||||
if ($data['store_location']) {
|
||||
$location = new Location();
|
||||
$location->latitude = $data['latitude'] ?? config('firefly.default_location.latitude');
|
||||
|
||||
Reference in New Issue
Block a user