Skip to content

Commit

Permalink
Use more descriptive binding name in Xor.combine
Browse files Browse the repository at this point in the history
Per @non's suggestion.
  • Loading branch information
ceedubs committed May 17, 2016
1 parent faf05f9 commit 2f8e0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/data/Xor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ sealed abstract class Xor[+A, +B] extends Product with Serializable {
* }}}
*/
final def combine[AA >: A, BB >: B](that: AA Xor BB)(implicit BB: Semigroup[BB]): AA Xor BB = this match {
case l @ Xor.Left(_) => l
case left @ Xor.Left(_) => left
case Xor.Right(b1) => that match {
case l @ Xor.Left(_) => l
case left @ Xor.Left(_) => left
case Xor.Right(b2) => Xor.Right(BB.combine(b1, b2))
}
}
Expand Down

0 comments on commit 2f8e0fe

Please sign in to comment.