Code cleanup.

This commit is contained in:
James Cole
2015-07-06 18:13:57 +02:00
parent f38d38f139
commit cd08484a13
4 changed files with 9 additions and 10 deletions

View File

@@ -404,7 +404,9 @@ class AccountRepository implements AccountRepositoryInterface
'iban' => '',
];
$opposing = $this->storeAccount($opposingData);
$this->storeInitialBalance($newAccount, $opposing, $data);
if (!is_null($opposing)) {
$this->storeInitialBalance($newAccount, $opposing, $data);
}
}