This commit is contained in:
David Arranz 2026-08-15 15:42:23 +02:00
parent 7f305c930e
commit 13cd45ea37

View File

@ -21,8 +21,8 @@ export class CompanyFinder implements ICompanyFinder {
} }
return result.data.match( return result.data.match(
(company) => Result.ok(company), (company): Result<Company, Error> => Result.ok(company),
() => Result.fail(new CompanyNotFoundError("Company not found.")) (): Result<Company, Error> => Result.fail(new CompanyNotFoundError("Company not found."))
); );
} }
} }