.
This commit is contained in:
parent
7f305c930e
commit
13cd45ea37
@ -21,8 +21,8 @@ export class CompanyFinder implements ICompanyFinder {
|
||||
}
|
||||
|
||||
return result.data.match(
|
||||
(company) => Result.ok(company),
|
||||
() => Result.fail(new CompanyNotFoundError("Company not found."))
|
||||
(company): Result<Company, Error> => Result.ok(company),
|
||||
(): Result<Company, Error> => Result.fail(new CompanyNotFoundError("Company not found."))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user