Skip to content

Commit fdcff72

Browse files
committed
don't convert immutable to Vector
1 parent 71e076b commit fdcff72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala-2.12/cats/data/ChainCompanionCompat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private[data] trait ChainCompanionCompat {
4040
private def fromImmutableSeq[A](s: immutable.Seq[A]): Chain[A] = {
4141
val lc = s.lengthCompare(1)
4242
if (lc < 0) nil
43-
else if (lc > 0) Wrap(s.toVector)
43+
else if (lc > 0) Wrap(s)
4444
else one(s.head)
4545
}
4646

0 commit comments

Comments
 (0)