diff --git a/typescript/option/src/helpers/mapAsync.ts b/typescript/option/src/helpers/mapAsync.ts index 05b8ea4..ebf7989 100644 --- a/typescript/option/src/helpers/mapAsync.ts +++ b/typescript/option/src/helpers/mapAsync.ts @@ -7,11 +7,7 @@ export const mapAsync = ( option: Option ) => { return match( - async value => { - const output = await mapper(value) - - return Some(output) - }, + value => mapper(value).then(Some), Promise.resolve(None), option )