Fix , add missing return statement

This commit is contained in:
James Cole 2023-09-01 15:23:10 +02:00
parent 1aeaa8b77d
commit 461249737e

View File

@ -293,6 +293,7 @@ class AccountValidator
$first = $this->accountRepository->findByName($accountName, $validTypes);
if (null !== $first) {
app('log')->debug(sprintf('Name: Found %s account #%d ("%s", IBAN "%s")', $first->accountType->type, $first->id, $first->name, $first->iban ?? 'no iban'));
return $first;
}
}
app('log')->debug('Found nothing!');