Skip to content

Commit

Permalink
fix: switched from values.Set to values.Add so we don't overwrite val…
Browse files Browse the repository at this point in the history
…ues being set
  • Loading branch information
demeyerthom committed Feb 21, 2024
1 parent f93710a commit 2e6ee08
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ class GoMethodRenderer(

if (it.isPatternProperty()) {
val name = it.paramName().exportName()
// TODO: We could validate the key against the regex
"""
|for k, v := range input.$name {
| for _, x := range v {
| values.Set(k, x)
| values.Add(k, x)
| }
|}
""".trimMargin()
Expand Down

0 comments on commit 2e6ee08

Please sign in to comment.