Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@guihardbastien
Copy link
Contributor

fixed tapSomeError return type
minor changes in tests

Co-authored by @dylandoamaral

final def tapSomeError[R1 <: R, E1 >: E, A1 >: A](
f: PartialFunction[E, ZIO[R1, E1, A1]]
)(implicit ev: CanFail[E], trace: Trace): ZIO[R1, E1, A1] =
)(implicit ev: CanFail[E], trace: Trace): ZIO[R1, E1, A] =
Copy link
Member

@jdegoes jdegoes Aug 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks to me like f passed to tapSomeError does not need to take a parameter A1 and can simply read like:

  final def tapSomeError[R1 <: R, E1 >: E](
    f: PartialFunction[E, ZIO[R1, E1, Any]]
  )(implicit ev: CanFail[E], trace: Trace): ZIO[R1, E1, A] =

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdegoes Done in #7222.

@adamgfraser
Copy link
Contributor

@guihardbastien Thanks for your work in this! Picked up this change in #7222.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants