Skip to content

Commit

Permalink
fix an issue where sections were not properly divided when parsing th…
Browse files Browse the repository at this point in the history
…e config file
  • Loading branch information
jeonghwan-jang authored Feb 14, 2024
1 parent 675413c commit b777774
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private fun mergeSections(tokenIndexMap: Map<Token.Section, Map<String, AwsConfi
when (entry.key.hasSectionPrefix) {
true -> true
false -> {
val prefixVariantExists = tokenIndexMap.keys.any { it.hasSectionPrefix && it.name == entry.key.name }
val prefixVariantExists = tokenIndexMap.keys.any { it.hasSectionPrefix && it.name == entry.key.name && it.type == entry.key.type }
!prefixVariantExists
}
}
Expand Down

0 comments on commit b777774

Please sign in to comment.