Skip to content

Commit

Permalink
Remove useless __PURE__ annotation
Browse files Browse the repository at this point in the history
It should be placed before function invocation, but here we're just
mapping one function to another and casting it to `any`.
  • Loading branch information
kblcuk authored and gcanti committed Jan 3, 2024
1 parent 6bc5b75 commit 16bc70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Either.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ export const chainOptionK: <E>(
*/
export const chainOptionKW: <E2>(
onNone: LazyArg<E2>
) => <A, B>(f: (a: A) => Option<B>) => <E1>(ma: Either<E1, A>) => Either<E1 | E2, B> = /*#__PURE__*/ chainOptionK as any
) => <A, B>(f: (a: A) => Option<B>) => <E1>(ma: Either<E1, A>) => Either<E1 | E2, B> = chainOptionK as any

/** @internal */
interface EitherTypeLambda extends _.TypeLambda {
Expand Down

0 comments on commit 16bc70b

Please sign in to comment.