diff --git a/.scalafmt.conf b/.scalafmt.conf index 3d596973c6..9b6c55e2cf 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version=3.2.1 +version=3.2.2 align.openParenCallSite = true align.openParenDefnSite = true maxColumn = 120 diff --git a/core/src/main/scala/cats/instances/try.scala b/core/src/main/scala/cats/instances/try.scala index 5a88e4724b..aafe6c7e2f 100644 --- a/core/src/main/scala/cats/instances/try.scala +++ b/core/src/main/scala/cats/instances/try.scala @@ -75,9 +75,10 @@ trait TryInstances extends TryInstances1 { ta match { case Success(a) => Try(map(a)); case Failure(e) => Try(recover(e)) } override def redeemWith[A, B](ta: Try[A])(recover: Throwable => Try[B], bind: A => Try[B]): Try[B] = - try ta match { - case Success(a) => bind(a); case Failure(e) => recover(e) - } catch { case NonFatal(e) => Failure(e) } + try + ta match { + case Success(a) => bind(a); case Failure(e) => recover(e) + } catch { case NonFatal(e) => Failure(e) } override def recover[A](ta: Try[A])(pf: PartialFunction[Throwable, A]): Try[A] = ta.recover(pf)