Skip to content

Commit

Permalink
Fix: name is already introduced in enclosing scope
Browse files Browse the repository at this point in the history
  • Loading branch information
vlovgr committed Feb 29, 2024
1 parent 2b2842b commit f3dd7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/shared/src/main/scala/ciris/ConfigDecoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ object ConfigDecoder {
override final def raiseError[B](error: ConfigError): ConfigDecoder[A, B] =
ConfigDecoder.lift(_ => Left(error))

override final def tailRecM[B, C](b: B)(
override final def tailRecM[B, C](initial: B)(
f: B => ConfigDecoder[A, Either[B, C]]
): ConfigDecoder[A, C] =
ConfigDecoder.instance { (key, value) =>
Expand All @@ -392,7 +392,7 @@ object ConfigDecoder {
case Right(Left(b)) => go(f(b))
}

go(f(b))
go(f(initial))
}
}
}

0 comments on commit f3dd7d1

Please sign in to comment.