Skip to content

Commit cfcf921

Browse files
committed
Remove unnecessary String interpolation from function showUnknown(). Also rename local variable to what it really is (an error), to make this use consistent with the rest of file.
1 parent 486d9a8 commit cfcf921

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/shared/src/main/scala/cats/effect/kernel/Outcome.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ private[kernel] trait LowPriorityImplicits {
127127
implicit def showUnknown[F[_], E, A](implicit E: Show[E]): Show[Outcome[F, E, A]] =
128128
Show show {
129129
case Canceled() => "Canceled"
130-
case Errored(left) => s"Errored(${left.show})"
131-
case Succeeded(_) => s"Succeeded(...)"
130+
case Errored(e) => s"Errored(${e.show})"
131+
case Succeeded(_) => "Succeeded(...)"
132132
}
133133

134134
implicit def eq[F[_], E: Eq, A](implicit FA: Eq[F[A]]): Eq[Outcome[F, E, A]] =

0 commit comments

Comments
 (0)