Skip to content

Commit

Permalink
fix: Add "fix" to MapConfigReader as well
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jan 10, 2023
1 parent 34cc4fa commit dec780c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public sealed class Hocon(

override fun beginStructure(descriptor: SerialDescriptor): CompositeDecoder =
when {
descriptor.kind is PolymorphicKind -> PolymorphConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
descriptor.kind.listLike -> ListConfigReader(values[currentTag / 2] as ConfigList)
descriptor.kind.objLike -> ConfigReader((values[currentTag / 2] as ConfigObject).toConfig())
descriptor.kind == StructureKind.MAP -> MapConfigReader(values[currentTag / 2] as ConfigObject)
Expand Down

0 comments on commit dec780c

Please sign in to comment.