Skip to content

Commit

Permalink
Run scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Masynchin committed Feb 19, 2024
1 parent a414be1 commit 35706a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/main/scala-2.13+/cats/instances/arraySeq.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ private[cats] object ArraySeqInstances {
G.map2Eval(f(x), xse)((b, vec) => if (b) x +: vec else vec)
}.value

override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])(f: (S, A) => (S, Option[B])): (S, ArraySeq[B]) =
override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])(
f: (S, A) => (S, Option[B])
): (S, ArraySeq[B]) =
StaticMethods.mapAccumulateFilterFromStrictFunctorFilter(init, fa, f)(this)
}
}
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/instances/option.scala
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private[instances] trait OptionInstancesBinCompat0 {
case None => G.pure(Option.empty[A])
case Some(a) => G.map(f(a))(b => if (b) Some(a) else None)
}

override def mapAccumulateFilter[S, A, B](init: S, fa: Option[A])(f: (S, A) => (S, Option[B])): (S, Option[B]) =
fa match {
case Some(a) => f(init, a)
Expand Down

0 comments on commit 35706a7

Please sign in to comment.