Skip to content

Commit

Permalink
remove unnecessary case
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jul 26, 2021
1 parent ef0fea3 commit 3eacb9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ValidateEffectSpec extends Specification with ScalaCheck with Specs2Compat
type Comput = Fx.fx2[Validate[E, *], Writer[E, *]]
type Check[A] = Eff[Comput, A]

val handle: E => Check[Unit] = { case e => tell[Comput, E](e).map(_ => ()) }
val handle: E => Check[Unit] = { e => tell[Comput, E](e).map(_ => ()) }

val comp1: Check[Int] = for {
_ <- wrong[Comput, E]("1").catchFirstWrong(handle)
Expand Down

0 comments on commit 3eacb9d

Please sign in to comment.