From 2101717edb4479d4e03f1b33360627af64f68df3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 5 May 2020 20:32:04 +0200 Subject: [PATCH] Can return without split. --- app/Repositories/Account/AccountRepository.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 5070552749..ba9b760e4d 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -36,7 +36,6 @@ use FireflyIII\Models\TransactionType; use FireflyIII\Services\Internal\Destroy\AccountDestroyService; use FireflyIII\Services\Internal\Update\AccountUpdateService; use FireflyIII\User; -use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Support\Collection; use Log; @@ -501,9 +500,7 @@ class AccountRepository implements AccountRepositoryInterface $factory = app(AccountFactory::class); $factory->setUser($account->user); - $account = $factory->create($data); - - return $account; + return $factory->create($data); } /**